Subtotal Calculation Incorrect
-
I have an order which displays an incorrect subtotal in the Invoice. I have included a screenshot of the WooCommerce order (https://ibb.co/GH2PCzR) and the Invoice (https://ibb.co/8sCgBTr). The calculation in WooCommerce is as follows:
Item 1 £302.50 x 1 = £302.50 total, £60.50 VAT
Item 2 £11.67 x 2 = £23.33 total, £4.67 VAT
Item 3 £11.67 x 2 = £23.33 total, £4.67 VAT
Item 4 £40.83 x 1 = £40.83 total, £8.17 VAT
Shipping: 0.00
VAT: £78.01
Total: £468.00The invoice however, displays
Item 1 x 1 = £363.00
Item 2 x 2 = £28.00
Item 3 x 2 = £28.00
Item 4 x 1 = £49.00
Subtotal: £468.01
Total: £468.00 (includes £78.01 VAT)So the subtotal is taking the item values and adding the VAT:
302.5 + 23.333333 + 23.333333 + 40.833333 + 78.01 = 468.009999 and then rounding to £468.01 which then doesn’t match WooCommerceCan you please tell me how to fix this?
- The topic ‘Subtotal Calculation Incorrect’ is closed to new replies.