Skip to content

BugFix: Rounding Errors

Compare
Choose a tag to compare
@AntonyThorpe AntonyThorpe released this 13 Apr 05:55
· 16 commits to master since this release

Rounding errors can be created by different ways of calculating Tax. SilverShop calculates Tax based on the Sub Total, whereas, Unleashed sums the Tax on each line item of the sales order and applicable modifiers. The code has been adjusted to follow the Unleashed approach and any rounding is added to the first sales order line and also to the TaxTotal to correct. Grand total remains the same.

Added a new function setBodyTaxCode to the Order class.