fix: update correct cost center in Accounts Receivable Report

(cherry picked from commit 09776e9a5a)
This commit is contained in:
vishakhdesai
2024-12-20 18:03:42 +05:30
committed by Mergify
parent 0986434871
commit 197b13eb87

View File

@@ -145,6 +145,9 @@ class ReceivablePayableReport:
if key not in self.voucher_balance:
self.voucher_balance[key] = self.build_voucher_dict(ple)
if ple.voucher_type == ple.against_voucher_type and ple.voucher_no == ple.against_voucher_no:
self.voucher_balance[key].cost_center = ple.cost_center
self.get_invoices(ple)
if self.filters.get("group_by_party"):