Wrong order of taxes in quotation
Summary
Flectra version: 1.4
Taxes are being calculated in the wrong order in quotations when one item is set to Tax computation: Percentage of Price Tax included.
Steps to reproduce
First set up three taxes:
- GetFund: Percentage of Price, 2.5%, Tax Group: GetFund
- NHIL: Percentage of Price, 2.5%, Affect Base of Subsequent Taxes, Tax Group: NHIL
- VAT: Percentage of Price Tax Included, Tax Group: VAT
Next make sure there is a product, A, price GHS 600, taxes applied: GetFund, NHIL, VAT
Now create a quotation. Add one item of product A.
What is the current bug behavior?
Taxes is GHS 117.86, and total is GHS 717.86.
When you print the quotation, you see the itemized taxes and can confirm the incorrect order of taxes.
NHIL on GHS 600: GHS 15 (this is correct) VAT on GHS 615: GHS 87.86 (incorrect, wrong basis) GetFund on GHS 600: GHS 15 (correct in itself)
Total: GHS 717.68
What is the expected correct behavior?
GetFund on GHS 600: GHS 15 NHIL on GHS 600: GHS 15 VAT on GHS 630: 78.75
Total: GHS 708.75
Relevant logs and/or screenshots
Possible fixes
Other details
- Putting all taxes in the same tax group does not fix the issue
- Un-checking Affect the base of Subsequent taxes on NHIL does not fix the issue