Jacek Es Posted September 13 Share Posted September 13 Hi, PrestaShop v8.1.7 Tested on fresh installation Settings: Product base price: £0.30 Specific price by discount: -31% from 1000pcs UK VAT @ 20% Rounding mode: Round on each item Rounding type: Round up away from zero, when it is half way there (recommended) Currency decimal: 2 Free delivery Quantity ordered: 1000 pcs PrestaShop calculations: Correct calculations should be: Subtotal: £210.00 Total (VAT excl.): £210.00 Total (tax incl.): £252.00 Regards, Jacek Link to comment Share on other sites More sharing options...
Nickz Posted September 13 Share Posted September 13 How do you set up the discount? Per Group or generally? Link to comment Share on other sites More sharing options...
Jacek Es Posted September 13 Author Share Posted September 13 Discount is set at the product level for all groups: Jacek Link to comment Share on other sites More sharing options...
Nickz Posted September 13 Share Posted September 13 did you set the - in front of the tax percentage? Link to comment Share on other sites More sharing options...
Jacek Es Posted September 13 Author Share Posted September 13 I don't see this option: All the customers groups are set for Price display method: Tax excluded I think the problem may be with the rounding. In my example when the base price is £0.30 and 31% discount is applied then it gives the discounted price of £0.207. When the currency is set to 2 Decimals the calculations are wrong. When I set the currency Decimals to 4 the order calculations are correct: Link to comment Share on other sites More sharing options...
Nickz Posted September 13 Share Posted September 13 Is that the only rule you set? Link to comment Share on other sites More sharing options...
Jacek Es Posted September 13 Author Share Posted September 13 Yes. This is a fresh installation and I have chosen the already preconfigured UK 20% VAT tax and added the Specific price by discount: -31% from 1000pcs. No additional rules Link to comment Share on other sites More sharing options...
Jacek Es Posted September 16 Author Share Posted September 16 It appears that the PS calculations may be correct based on the following: Rounding mode: Round on each item Product base price: £0.30 Discount applied at 1000pc: -31% Price after discount excl. VAT: £0.207, rounded to £0.21 20% VAT applied to each item: £0.21 * 0.20 = 0.042, rounded to £0.04 Item price, incl. VAT: £0.21 + £0.04 = £0.25 Total for 1000pcs: £0.25 * 1000 = £250 In this example VAT is added to each item and then multiplied by quantities? Is there a way of changing this that first is a total calculated excl. VAT and then VAT is added? This would make the calculations more clear and avoiding rounding differences. Link to comment Share on other sites More sharing options...
Nickz Posted September 16 Share Posted September 16 I'm pretty sure that under the 1000s of modules one offers just that. If not a custom module is often not so expensive. Just don't ask here. People doing modules sometimes believe you are Bill Gates. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now