This question has been flagged
3 Replies
7921 Views

I created an invoice, then validate the invoice and then Register payment. Later I came to know that this invoice is wrong. Then I go to payments and click cancel. Then the invoice moves into open state. Then I cancelled the invoice but my payments still pending.

The payments are in draft state but I want to delete those payments. I un-reconciled the JE and I am still getting the following error message when I try to delete Payment.

It is not allowed to delete a payment that already created a journal entry since it would create a gap in the numbering. You should create the journal entry again and cancel it thanks to a regular revert.

Can Anyone suggest me how to delete the payment record?'

Thank you.

Avatar
Discard
Best Answer

You should not delete the payment, as you have received it. You should cancel the invoice, create the proper invoice and then match the correct invoice with the available payment.

Avatar
Discard
Author

Thank you Ermin,

But the payments are wrong. The customer didn't pay. We don't need that payment record.

In this case you have to install the module account_cancel, un-reconcile the payment and cancel it, see Niyas' answer here: https://www.odoo.com/forum/help-1/question/removing-a-registered-customer-payment-127689

Best Answer

Hi Muhammad, the payments is still pending because of the JE. You should void the JE of payment to remove that payment from odoo. 
1. First unreconcile the payment with the invoice
2. Then cancel the payment and Void payment journal entry 
3. Then delete the payment
 By this way you will not get pending payment. To make JE as void, install this OCA free app   https://www.odoo.com/apps/modules/10.0/skit_void_journal_entry/​. 
​​​​Hope this help you,
Thanks and regards,
Dhivya. N
Skype id: dhivya_skit
mail id: dhivya_n@srikeshinfotech.com

Avatar
Discard