From b877b0d3a2e47a26534b842931288c6405ee5dc6 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Tue, 1 Nov 2022 16:56:35 +0530 Subject: [PATCH] fix: filter return pos in reconciliation tool --- erpnext/accounts/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index c4fafba2669..b0b217684ea 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -835,10 +835,7 @@ def remove_return_pos_invoices(party_type, party, invoice_list): else: return invoice_list - # remove pos return invoices from invoice_list - for idx, inv in enumerate(invoice_list, 0): - if inv.voucher_no in return_pos: - del invoice_list[idx] + invoice_list = [x for x in invoice_list if x.voucher_no not in return_pos] return invoice_list