odoo/odoo#156527

Created by Robin Engels (roen)
label
odoo-dev:16.0-opw-3678298-age_negative-roen
head
e62186a990b2ee8145236d7e43b24faaa52c6fe5
target
16.0
merged
1 month ago by POS IoT, Joseph Caburnay (jcb)
forward-ports

[FIX] point_of_sale: correctly reconcile reversed payments

Current behavior:
When an order is invoided after the session has been closed, a reversed payment is created. This payment is not reconciled correctly with the invoice. This is creating an aged receivable for the partner.

Steps to reproduce:
- Change the bank payment method to "Identify customer"
- Create an order in the PoS and pay with bank and specify a partner
- Close the session
- Open the session again, and create an invoice for the order
- Go to the accounting module and look for the aged receivable report you should see some entries under the partner you selected.
- You can also go to the partner form and see that he has some due invoices.

opw-3678298
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr