mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
fix(accounts receivable): exclude employee transactions
This commit is contained in:
@@ -976,6 +976,7 @@ class ReceivablePayableReport:
|
||||
|
||||
if self.account_type == "Receivable":
|
||||
self.add_customer_filters()
|
||||
self.exclude_employee_transaction()
|
||||
|
||||
elif self.account_type == "Payable":
|
||||
self.add_supplier_filters()
|
||||
@@ -1055,6 +1056,9 @@ class ReceivablePayableReport:
|
||||
)
|
||||
)
|
||||
|
||||
def exclude_employee_transaction(self):
|
||||
self.qb_selection_filter.append(self.ple.party_type != "Employee")
|
||||
|
||||
def add_supplier_filters(self):
|
||||
supplier = qb.DocType("Supplier")
|
||||
if self.filters.get("supplier_group"):
|
||||
|
||||
Reference in New Issue
Block a user