fix: also check on_hold (#35910)
fix: also check on_hold (#35910) (cherry picked from commit 5aa02b8571efdc1710a9b3069a18a80ed17856a2) Co-authored-by: RJPvT <48353029+RJPvT@users.noreply.github.com>
This commit is contained in:
parent
361a357088
commit
872a23c77d
@ -850,7 +850,7 @@ def get_held_invoices(party_type, party):
|
|||||||
|
|
||||||
if party_type == "Supplier":
|
if party_type == "Supplier":
|
||||||
held_invoices = frappe.db.sql(
|
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,
|
as_dict=1,
|
||||||
)
|
)
|
||||||
held_invoices = set(d["name"] for d in held_invoices)
|
held_invoices = set(d["name"] for d in held_invoices)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user