invoiceninja / admin-portal

Invoice Ninja: Desktop/mobile admin portal built with Flutter
https://demo.invoiceninja.com
Other
1.62k stars 547 forks source link

Reversed invoice into credit inclusive taxes - PDF preview not displaying correct balance #702

Open mrkylegp opened 1 day ago

mrkylegp commented 1 day ago

v5.10.58-W171

When reversing an invoice to create a credit, if you have inclusive taxes enabled, this is not respected in the preview and tax is applied on top of the line item, not inclusively.

Step 1: Create an invoice for $50 with inclusive GST 10% taxes. Step 2: Enter payment for $50. Step 3: Choose reverse on the invoice. Step 4: This brings up a new credit. Tax inclusive (GST 10%) is enabled. The balance shows $50 as we expect, however the invoice total is $55 in the PDF preview, not $50 (which would be inclusive).

image

Only once you save, back out, then go back into the credit does the PDF preview update properly.

hillelcoren commented 1 day ago

Are you able to check if you see the same problem in the React app? It will help determine if the problem is in the frontend or backend.