Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item Cost - Decimal Places
02-21-2018, 09:36 PM, (This post was last modified: 02-21-2018, 09:37 PM by afcouling.)
#5
RE: Item Cost - Decimal Places
Hi Paul,

Yes, would be great to get this in the trunk - one less customisation to re-instate following upgrades!

How many decimals (maximum) place do you think would be appropriate?
Is there a downside to allowing more than 4?
Do you the other systems you have worked with allow this to be configured?

I'm not sure if I have any rounding errors in the GLTrans or ChartDetails tables. Do you have an example, so I know what to look for?

In SelectProduct.php, around Line 347, I changed

Code:
<td class="select" style="text-align:right">' . locale_number_format($SuppRow['price'] / $SuppRow['conversionfactor'], $SuppRow['decimalplaces']) . '</td>

to

Code:
<td class="select" style="text-align:right">' . locale_number_format($SuppRow['price'] / $SuppRow['conversionfactor'], $_SESSION['StandardCostDecimalPlaces']) . '</td>

Perhaps this was a bit of a hack.

Andy.

PS. What is a slide rule ??! Tongue
https://www.linkedin.com/in/andrewcouling
Reply


Messages In This Thread
Item Cost - Decimal Places - by VortecCPI - 02-15-2018, 08:54 AM
RE: Item Cost - Decimal Places - by TurboPT - 02-16-2018, 12:43 PM
RE: Item Cost - Decimal Places - by afcouling - 02-20-2018, 12:33 AM
RE: Item Cost - Decimal Places - by VortecCPI - 02-20-2018, 12:54 AM
RE: Item Cost - Decimal Places - by afcouling - 02-21-2018, 09:36 PM
RE: Item Cost - Decimal Places - by TimSchofield - 02-21-2018, 09:45 PM
RE: Item Cost - Decimal Places - by afcouling - 02-21-2018, 09:53 PM
RE: Item Cost - Decimal Places - by TimSchofield - 02-21-2018, 11:37 PM
RE: Item Cost - Decimal Places - by VortecCPI - 02-21-2018, 10:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)