[eluser]koichirose[/eluser]
@haseydesign
First of all, your questions.
1. 82.644
2. it is false
3. I'm displaying prices including taxes
The totals are ok in my setup too, meaning that the following (what you said) is valid for me, too:
After the 10% discount
Item Summary Total: 82.64€
VAT @ 21%: 15.62€
Discount @ 10%: 8.26€
Grand Total: 90.00€
Except I'm displaying everything with taxes:
Item Summary Total: 100€
Shipping: 9.68€
Discount @ 10%: 9.99€ //wrong
Grand Total: 99.68 (which is 90 + 9.68, perfect).
My only issue is that as you see I'd like to display the discount including taxes, but since the discount only has two decimals, the result is 9.99.
I'm manually adding taxes to the discount to display it, with:
Code:
$this->flexi_cart->summary_savings_total(false, true) * $current_tax_multiplier
Result: 8.26*1.21 = 9.994 => 9.99.
I couldn't find a flexi_cart function to display savings including taxes, regardless of the 'price_inc_tax' config value.
If I could have the discount with 3 decimals, the result would be correct:
8.264*1.21 = 9.9994 => 10
Thank you again