These are some serious flaws to this contribution and I would like to see if anyone had luck fixing these problems.
1. When you enter a discount amount, and click update, the tax does not calculate correctly.
Example:
(If tax rate is 5.6%)
Sub-total: 100.00
discount: - 10.00
Tax: 5.60 (This should be 5.04)
Total: 95.60
So it is calculating the tax on the subtotal and not including the discount.
2. I use discount coupons contribution. If the customer creates an order and uses a coupon, it works just fine but if you update the order, it completely ignores the discount amount.
Examples:
(This is how it looks before you click update, completely correct!)
Sub-Total: 100.00
Discount coupon: -10.00
Tax: 5.04
Total: 95.04
(This is what happens after you click update)
Sub-Total: 100.00
Discount Coupon: -10.00
Tax: 5.60
Total: 105.60
I have read just about every post and there are some fixes that people found. Unfortunately, I am using the latest build of order editor and every fix that I found does not apply to the current build. The code seems to be completely different and I cannot adapt it to work correctly.
I think these problems are both related to each other so hopefully there is an easy way to get them both to work correctly.
So any help that you can offer will be appreciated and generously rewarded. Thanks in advance!