crater-invoice/crater

Tax is calculated on non discounted price

colognation opened this issue · 3 comments

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

When will this issue be fixed? This is a huge problem, when the invoice calculates false numbers!

Is there no response at all? In the current release the tool calculates wrong, which is a huge issue for an invoice program!

Has crater been abandoned?