mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 20:35:09 +00:00
fix(accounts receivable): exclude employee transactions
(cherry picked from commit 736a776d3d)
This commit is contained in:
@@ -974,6 +974,7 @@ class ReceivablePayableReport:
|
|||||||
|
|
||||||
if self.account_type == "Receivable":
|
if self.account_type == "Receivable":
|
||||||
self.add_customer_filters()
|
self.add_customer_filters()
|
||||||
|
self.exclude_employee_transaction()
|
||||||
|
|
||||||
elif self.account_type == "Payable":
|
elif self.account_type == "Payable":
|
||||||
self.add_supplier_filters()
|
self.add_supplier_filters()
|
||||||
@@ -1053,6 +1054,9 @@ class ReceivablePayableReport:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def exclude_employee_transaction(self):
|
||||||
|
self.qb_selection_filter.append(self.ple.party_type != "Employee")
|
||||||
|
|
||||||
def add_supplier_filters(self):
|
def add_supplier_filters(self):
|
||||||
supplier = qb.DocType("Supplier")
|
supplier = qb.DocType("Supplier")
|
||||||
if self.filters.get("supplier_group"):
|
if self.filters.get("supplier_group"):
|
||||||
|
|||||||
Reference in New Issue
Block a user