02-07-2012, 11:27 AM
When functional currency is IDR or any other used usually with 0 decimal places, it is a big nuissance to have the standard cost with 4 decimals as it leads to errors from user.
Also in systems with currencies with 2 decimal places, the standard cost decimal places depends on the business itself (may be wholesale needs 3,4,5 decimals but retailers might probably be OK with 2).
I propose to make this field a parameter so:
1) Update table currencies adding a field called decimalplacesstandardcost, next to the current decimalplaces
2) Using this parameter instead of the fixed 4 in StockCostUpdate.php
I can easily code and submit this, but need help: In which script is $_SESSION['CompanyRecord']['decimalplaces'] set, so I can set $_SESSION['CompanyRecord']['decimalplacesstandardcost']?
is it a good idea? Any different approach?
Also in systems with currencies with 2 decimal places, the standard cost decimal places depends on the business itself (may be wholesale needs 3,4,5 decimals but retailers might probably be OK with 2).
I propose to make this field a parameter so:
1) Update table currencies adding a field called decimalplacesstandardcost, next to the current decimalplaces
2) Using this parameter instead of the fixed 4 in StockCostUpdate.php
I can easily code and submit this, but need help: In which script is $_SESSION['CompanyRecord']['decimalplaces'] set, so I can set $_SESSION['CompanyRecord']['decimalplacesstandardcost']?
is it a good idea? Any different approach?