Tax Rounding Rules
Tax Rounding Rules
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?
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Tax Rounding Rules
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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Tax Rounding Rules
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.
--
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.
Thanks for your support
Naveed Ashraf
.com
AbleCommerce Help Center
AbleCommerce Developer WIKI
Follow us on Twitter
Naveed Ashraf

AbleCommerce Help Center
AbleCommerce Developer WIKI
Follow us on Twitter