You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you have an article with discount the tax (on article level) is calculated on the non discounted price. So the tax calculated will always be to high.
It looks like the values in "app/Http/Resources/Customer/InvoiceItemResource.php" class are not correct (total, base_price, base_total). This results in the wrong calculation as the discount is not observed in these variables.
Expected behavior
Tax should be calculated on the correct discounted price (base_total).
Please complete the following information:
Crater version: 6.0.6
PHP version: 8.0
Database type and version: MySQL 8.0
The text was updated successfully, but these errors were encountered:
Describe the bug
If you have an article with discount the tax (on article level) is calculated on the non discounted price. So the tax calculated will always be to high.
It looks like the values in "app/Http/Resources/Customer/InvoiceItemResource.php" class are not correct (total, base_price, base_total). This results in the wrong calculation as the discount is not observed in these variables.
Expected behavior
Tax should be calculated on the correct discounted price (base_total).
Please complete the following information:
The text was updated successfully, but these errors were encountered: