fix: include payment against PO in AR/AP report

(cherry picked from commit fdd167cac1)
This commit is contained in:
ruthra kumar
2022-08-24 12:24:55 +05:30
committed by Mergify
parent 92f8f0ec74
commit 4bbd0ec985

View File

@@ -179,6 +179,11 @@ class ReceivablePayableReport(object):
key = (ple.against_voucher_type, ple.against_voucher_no, ple.party) key = (ple.against_voucher_type, ple.against_voucher_no, ple.party)
row = self.voucher_balance.get(key) row = self.voucher_balance.get(key)
if not row:
# no invoice, this is an invoice / stand-alone payment / credit note
row = self.voucher_balance.get((ple.voucher_type, ple.voucher_no, ple.party))
return row return row
def update_voucher_balance(self, ple): def update_voucher_balance(self, ple):