# Question about payment and payment\_clearing module

**URL:** <https://discuss.tryton.org/t/question-about-payment-and-payment-clearing-module/2013>\
**Category:** User\
**Created:** [November 29, 2019, 3:00am UTC](https://discuss.tryton.org/t/question-about-payment-and-payment-clearing-module/2013 "2019-11-29T03:00:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)\
**Post date:** [November 29, 2019, 3:00am UTC](https://discuss.tryton.org/t/question-about-payment-and-payment-clearing-module/2013/1 "2019-11-29T03:00:14Z")

</div>

Hi,

I was trying tryton 5.4.0 with payment and payment\_clearing configured, and test the follow scenarios:

Scenario 1

1. Create and post an invoice, total amount 2000. The state of the invoice is posted.
2. Create a partial payment, the line generated is the previous invoice, amount 500, aprove, process and succeed it.
3. Create a partial payment, the line generated is the previous invoice, amount 1500, aprove, process and succeed.
4. The amount to pay if the invoice is 0, but the state is posted not paid.

Scenario 2

1. Create and post an invoice, total amount 2000. The state of the invoice is posted.
2. Create a total payment, the line generated is the previous invoice, amount 2000, aprove, process and succeed it.
3. The amount to pay if the invoice is 0 and the state is paid.

Is it the desired behavior? Or may I need to do some config?

Thanks in advance!

---

<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 29, 2019, 11:27am UTC](https://discuss.tryton.org/t/question-about-payment-and-payment-clearing-module/2013/2 "2019-11-29T11:27:50Z")

</div>

If you do not define a clearing account on the payment journal, it is the expected behavior as there will be no move line to reconcile with until you fill a statement.

---

<div class="post-metadata">

**Author:** ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)\
**Post date:** [November 29, 2019, 6:59pm UTC](https://discuss.tryton.org/t/question-about-payment-and-payment-clearing-module/2013/3 "2019-11-29T18:59:38Z")

</div>

I have defined a clearing account on the payment journal, and the moves are created. But the invoice state after the 2 moves is ‘posted’. Do I need to do something more to reconcile it?

---

<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 29, 2019, 11:05pm UTC](https://discuss.tryton.org/t/question-about-payment-and-payment-clearing-module/2013/4 "2019-11-29T23:05:25Z")

</div>

The payable account must be marked “to reconcile”.

---

<div class="post-metadata">

**Author:** ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)\
**Post date:** [December 2, 2019, 11:25pm UTC](https://discuss.tryton.org/t/question-about-payment-and-payment-clearing-module/2013/5 "2019-12-02T23:25:58Z")

</div>

Thanks @ced, it works.

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [January 1, 2020, 11:26pm UTC](https://discuss.tryton.org/t/question-about-payment-and-payment-clearing-module/2013/6 "2020-01-01T23:26:04Z")

</div>

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