Skip to content

Commit

Permalink
fix: also check on_hold (frappe#35910)
Browse files Browse the repository at this point in the history
  • Loading branch information
RJPvT authored Jul 10, 2023
1 parent 53f7764 commit 5aa02b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def get_held_invoices(party_type, party):

if party_type == "Supplier":
held_invoices = frappe.db.sql(
"select name from `tabPurchase Invoice` where release_date IS NOT NULL and release_date > CURDATE()",
"select name from `tabPurchase Invoice` where on_hold = 1 and release_date IS NOT NULL and release_date > CURDATE()",
as_dict=1,
)
held_invoices = set(d["name"] for d in held_invoices)
Expand Down

0 comments on commit 5aa02b8

Please sign in to comment.