commit | f5761e79657f744aff6b1ed964f9ffdf6e7d5a9f | [log] [tgz] |
---|---|---|
author | Gursheen Anand <gursheen@frappe.io> | Fri Jul 28 16:01:30 2023 +0530 |
committer | Gursheen Anand <gursheen@frappe.io> | Fri Jul 28 16:01:30 2023 +0530 |
tree | ee68edd610cfe9c7bf06256ccb05164d0620533b | |
parent | e355dea4b550fcf64450876652f852f6a6c529fd [diff] [blame] |
refactor: future payments query
diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index d5f8634..895c314 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py
@@ -928,7 +928,7 @@ frappe.qb.from_(gle) .select(gle.party) .where( - (gle.party_type.isin(party_type)) & (gle.against_voucher == None) & (gle.is_cancelled == 0) + (gle.party_type.isin(party_type)) & (gle.against_voucher.isnull()) & (gle.is_cancelled == 0) ) .groupby(gle.party) )