Page 1 of 1

Tax Rounding Rules

Posted: Thu May 12, 2011 9:32 am
by jmadlin
We are at the 11th hour on a heavily customized implementation and have been given a requirement to round all prices to either .x0 or .x5. As we are using VAT rates of 20% and showing prices with this included we are seeing ex. vat prices entered as variants to the base product (which has a 0.00 price) rounded to something other than 0 or 5. We have searched the api but cannot find reference to rounding rules to ceate our own. Simple changing the variant price by a penny does not always result in a .x0 or .x5 price. Anyone have any bright ideas?

Re: Tax Rounding Rules

Posted: Fri May 13, 2011 3:55 am
by jmestep
This may not help, but try search Google on C# and rounding. I had to do some rounding on custom code once and found help, but it might not apply to your situation.

Re: Tax Rounding Rules

Posted: Tue May 17, 2011 4:56 am
by Naveed
We have three built in rounding rules, which we can specify while defining a rounding rule:

--
1. Common Method: In the common method, we round up on 5 so 0.105 becomes 0.11.
2. Round to Even: In round to even, we round to the nearest even number on 5 so 0.105 becomes 0.10 while 0.115 becomes 0.12.
3. Round Up: In always round up, we round up for any fractional value so 0.10001 becomes 0.11
--

The CommerceBuilder Api currently do not allow you to specify any other custom rule, unless you have the code to modify.