Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoice Total rounding Error - React Web #2436

Open
MPTres opened this issue Mar 16, 2025 · 0 comments
Open

Invoice Total rounding Error - React Web #2436

MPTres opened this issue Mar 16, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MPTres
Copy link

MPTres commented Mar 16, 2025

Setup

  • Version: v5.11.54
  • Environment: Docker

Interface

  • Flutter: []
  • React: [X]
  • Both: []

Checklist

Describe the bug

I use two taxes in my invoices., that are applied to the invoice net total to calculate the final invoiced amount.
The first tax is 21% and then there is -15%. for personal tax income withholding.
Both taxes are calculated using the net amount, and then to calculate the total, just add the 21% and subtract the 15% to the net amount.

In the error i found, it was like this:
Tax Free amount (Net/Subtotal): 1393,50 €
21% VAT : 292,64€. (rounded ok)
-15% WITHOLD: -209,03€ (rounded ok)
Total: 1.477,12€.

Total should be : 1.477,11€.

This happens in the edit screen of the react web, but only in the web interface. In the PDF preview and the final PDF invoice it shows the proper amount: 1.477,11€

The Flutter app works fine, showing the proper amount in the interface: 1.477,11€

Steps To Reproduce

Create two taxes : One 21% and another -15%.
Set the total amount of an invoice to 1393,50 €
Set the two taxes for that invoice.
total shown in the screen for the invoice should be 1.477,11€, but actually shows 1477,12€

Expected Behaviour

The expected behaviour is for the total to be 1477,11€, but it shows 1.477,12€

Additional context

Screenshots

Image Image Image

Logs


@MPTres MPTres added the triage label Mar 16, 2025
@MPTres MPTres changed the title Invoice Total rounding Error - Web Invoice Total rounding Error - React Web Mar 16, 2025
@turbo124 turbo124 transferred this issue from invoiceninja/invoiceninja Mar 16, 2025
@turbo124 turbo124 added bug Something isn't working and removed triage labels Mar 17, 2025
@turbo124 turbo124 self-assigned this Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants