fix: filter return pos in reconciliation tool

This commit is contained in:
ruthra kumar
2022-11-01 16:56:35 +05:30
parent 5fdaddad86
commit b877b0d3a2

View File

@@ -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