🇫🇷France @Micka

Account created on 3 July 2023, over 1 year ago
#

Recent comments

🇫🇷France Micka

Hi,
Do you have a solution for stack : PHP 8.1 - D9.5.9 - Drupal Commerce 8.x-2.36
With a clean install and following parameters :
- Custom Tax config : include in the product price (10%)
- Promotion config : not include in the product price (displayed in total summary) (10%)
- original product variation price : 100$

Tax is not well if we consider it is calculated on without tax price.

VAT : ((priceTTC - actual VAT) - discount) * actual VAT percentage
VAT : ((110 - 9.09) - 10) * 0.1 = 9.09

Subtotal : $110.00
Discount : -$10.00
VAT : $9.09
Total : $100.00

Expected :
VAT : ((priceTTC - old VAT) - discount) * actual VAT percentage
VAT : ((110 - 10) - 10) * 0.1 = 9

Subtotal : $110.00
Discount : -$10.00
VAT : $9
Total : $100.00

Thanks in advance for your answer.
And sorry if i misunderstood this issue (french english ^^).

Production build 0.71.5 2024