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 ??!