refactor: make AR/AP report aware of always standalone cr/dr notes

This commit is contained in:
ruthra kumar
2024-03-13 09:55:23 +05:30
parent 849f478894
commit 4d0c2d8e82

View File

@@ -690,7 +690,12 @@ class ReceivablePayableReport(object):
def get_return_entries(self):
doctype = "Sales Invoice" if self.account_type == "Receivable" else "Purchase Invoice"
filters = {"is_return": 1, "docstatus": 1, "company": self.filters.company}
filters = {
"is_return": 1,
"docstatus": 1,
"company": self.filters.company,
"update_outstanding_for_self": 0,
}
or_filters = {}
for party_type in self.party_type:
party_field = scrub(party_type)