I’ve recently recieved an invoice with the following lines:
Price: 23.41, taxes: 21% tax amount: 4.82€
Price 7.03, taxes: 21%, tax amount: 1.48€
Which result in the following:
Untaxed amount: 30.44€
Tax amount: 6.40€
Total amount: 36,84€
But when enconding this on Tryton I get the following amounts:
Untaxed amount: 30.44€
Tax amount: 6.39€
Total amount: 36,83€
Which results in a diference of 0.01€ from the total amount. This is because the supplier is rounding the taxes for each line but we are rounding it per document.
I’ve tried to create a manual tax line to fix the rounding but I can not introduce 0.01€ as tax amount because I is automatically changed to 0.00€
Well if it needs a save then there is a bug. It should work without the need of saving first.
I think it is because we are missing a default value for invoice_state on the invoice tax so the fields are readonly.