[OFBiz] SVN: r6139 - trunk/applications/accounting/config
sichen at svn.ofbiz.org
sichen at svn.ofbiz.org
Thu Nov 17 19:40:26 EST 2005
Author: sichen
Date: 2005-11-17 18:40:22 -0600 (Thu, 17 Nov 2005)
New Revision: 6139
Modified:
trunk/applications/accounting/config/arithmetic.properties
Log:
Added new sales tax rounding, for future calculations using BigDecimal
Modified: trunk/applications/accounting/config/arithmetic.properties
===================================================================
--- trunk/applications/accounting/config/arithmetic.properties 2005-11-17 17:22:56 UTC (rev 6138)
+++ trunk/applications/accounting/config/arithmetic.properties 2005-11-18 00:40:22 UTC (rev 6139)
@@ -15,3 +15,10 @@
# such as Financial Accounts
finaccount.decimals = 2
finaccount.rounding = ROUND_HALF_UP
+
+# Most companies would want their sales tax calculations ALWAYS to round up (ie, 100.081 becomes 100.09)
+# This could be ROUND_CEILING or ROUND_UP. (The difference is that ROUND_CEILING rounds towards positive infinity,
+# ROUND_UP away from zero. So, for 1.13, both ROUND_UP and ROUND_CEILING will round to 1.2, but for -1.13,
+# ROUND_UP gives you -1.2 and ROUND_CEILING -1.1.)
+salestax.decimals = 2
+salestax.rounding = ROUND_CEILING
More information about the Svn
mailing list