# Invoice payment on accout move lines

**URL:** <https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622>\
**Category:** Ideas\
**Created:** [October 26, 2023, 2:02pm UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622 "2023-10-26T14:02:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![natalia.jove](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/n/e19adc/32.png) [@natalia.jove](https://discuss.tryton.org/u/natalia.jove)\
**Post date:** [October 26, 2023, 2:02pm UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/1 "2023-10-26T14:02:48Z")

</div>

In the account move lines we have the “Invoice payment” field, which is only shown in the event that the account move line is not reconciled.

I wonder why this condition exists, and why the value is not always shown, whether the account move line is reconciled or not.

Shouldn’t it always be shown?

---

<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:** [October 26, 2023, 2:37pm UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/2 "2023-10-26T14:37:15Z")

</div>

I guess you are talking about “Payment Lines”.  
For the reasoning you must look at the history: [Reconciliation does not fill payment lines (#3112) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue3112)

---

<div class="post-metadata">

**Author:** ![natalia.jove](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/n/e19adc/32.png) [@natalia.jove](https://discuss.tryton.org/u/natalia.jove)\
**Post date:** [October 26, 2023, 3:17pm UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/3 "2023-10-26T15:17:32Z")

</div>

I am talking about the field invoice\_payment that is related to the model account.invoice but also available in the model account.move.line

---

<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:** [October 26, 2023, 3:18pm UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/4 "2023-10-26T15:18:37Z")

</div>

There is no `invoice_payment` field on standard invoice.

---

<div class="post-metadata">

**Author:** ![natalia.jove](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/n/e19adc/32.png) [@natalia.jove](https://discuss.tryton.org/u/natalia.jove)\
**Post date:** [October 27, 2023, 12:49pm UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/5 "2023-10-27T12:49:58Z")

</div>

![Capturador de pantalla del Deepin_selecciona-àrea_20231027144936](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/cd27c89a0c4e9aa5cbacf0181124b97cb83ad753.png)

---

<div class="post-metadata">

**Author:** ![rvong](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/3bc359/32.png) [@rvong](https://discuss.tryton.org/u/rvong)\
**Post date:** [October 27, 2023, 1:32pm UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/6 "2023-10-27T13:32:44Z")

</div>

What you are showing above is an **account.move** record and not a **account.invoice** nor **account.invoice.line**. There is indeed a field **invoice\_payment** in **account.move.line** and it is used basically to associate partial payments or credit notes to a invoice while it is not fully paid (i.e. reconciled). When we add or remove more partial payments to a balance amount, it can fetch the associated documents and updates the payment lines.

In my opinion if an invoice is paid i.e. reconciled, then the field is no longer needed as there is no balance remaining to pay.

---

<div class="post-metadata">

**Author:** ![natalia.jove](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/n/e19adc/32.png) [@natalia.jove](https://discuss.tryton.org/u/natalia.jove)\
**Post date:** [November 6, 2023, 9:06am UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/7 "2023-11-06T09:06:06Z")

</div>

Having this into account, there is no way to see the payment lines that are related to an invoice in the account move view, if the invoice is fully paid?

Don’t you think it may be useful if the user is able to see this information from account moves?

---

<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:** [November 6, 2023, 9:14am UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/8 "2023-11-06T09:14:20Z")

</div>

The reconciliation lines are shown since [Show reconciliation lines on paid invoice (#8157) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue8157).  
But they can show an amount greater than the invoice amount, if some lines are reconciled with multiple invoices.

---

<div class="post-metadata">

**Author:** ![natalia.jove](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/n/e19adc/32.png) [@natalia.jove](https://discuss.tryton.org/u/natalia.jove)\
**Post date:** [November 6, 2023, 9:37am UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/9 "2023-11-06T09:37:52Z")

</div>

But I guess the reconciliation lines are shown in the invoice view which I think is okay, but in the account move line view there is not any relation shown between the payment line and the invoice when it is paid.

If you had this relation, you could see payment lines from multiples invoices that are paid from the account move line

---

<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:** [November 6, 2023, 9:38am UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/10 "2023-11-06T09:38:53Z")

</div>

> [@natalia.jove](#):
>
> but in the account move line view there is not any relation shown between the payment line and the invoice when it is paid.

The relation exists, it is the reconciliation.

---

<div class="post-metadata">

**Author:** ![natalia.jove](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/n/e19adc/32.png) [@natalia.jove](https://discuss.tryton.org/u/natalia.jove)\
**Post date:** [November 6, 2023, 10:15am UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/11 "2023-11-06T10:15:11Z")

</div>

Right, but I think showing as well the field invoice payment would be useful for the user

---

<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:** [November 6, 2023, 10:55am UTC](https://discuss.tryton.org/t/invoice-payment-on-accout-move-lines/6622/12 "2023-11-06T10:55:05Z")

</div>

It is shown as long as there is no reconciliation because once it is reconciled the field may no more contain accurate data. This is because the line may be reconciled differently as how the partial payment was planned.
