# How to manage supplier invoice rounding diferences

**URL:** https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475
**Category:** User
**Created:** [March 23, 2020, 3:36pm UTC](https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475 "2020-03-23T15:36:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 23, 2020, 3:36pm UTC](https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475/1 "2020-03-23T15:36:56Z")

</div>

Hi,

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€

Any ideas how to encode this kind of invoices?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 23, 2020, 3:43pm UTC](https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475/2 "2020-03-23T15:43:53Z")

</div>

You must edit the tax line (of 21%) to change the amount to match the supplier computation.

---

<div class="post-metadata">

### Author: ![semarie](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/semarie/32/112_2.png) [@semarie](https://discuss.tryton.org/u/semarie)
#### Post date: [March 23, 2020, 4:04pm UTC](https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475/3 "2020-03-23T16:04:17Z")

</div>

Just a practial hint to complete what @ced already said: you must first save the invoice, and next you can change the amount in tax line.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 23, 2020, 5:21pm UTC](https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475/4 "2020-03-23T17:21:00Z")

</div>

I think the save was the detail I was missing. It worked like a charm.  
Thank you both!

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 23, 2020, 11:10pm UTC](https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475/5 "2020-03-23T23:10:58Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 24, 2020, 8:51am UTC](https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475/6 "2020-03-24T08:51:18Z")

</div>

You were right. I’ve just filled [Tax lines are readonly until the invoice is saved (#9176) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9176) which add the default value and fixes the issue.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [April 23, 2020, 8:51am UTC](https://discuss.tryton.org/t/how-to-manage-supplier-invoice-rounding-diferences/2475/7 "2020-04-23T08:51:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
