mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
Disallow Stopped Orders in Against Voucher table
This commit is contained in:
@@ -91,6 +91,7 @@ def get_orders_to_be_billed(party_type, party_name):
|
|||||||
where
|
where
|
||||||
%s = %s
|
%s = %s
|
||||||
and docstatus = 1
|
and docstatus = 1
|
||||||
|
and ifnull(status, "") != "Stopped"
|
||||||
and ifnull(grand_total, 0) > ifnull(advance_paid, 0)
|
and ifnull(grand_total, 0) > ifnull(advance_paid, 0)
|
||||||
and ifnull(per_billed, 0) < 100.0
|
and ifnull(per_billed, 0) < 100.0
|
||||||
""" % (voucher_type, 'customer' if party_type == "Customer" else 'supplier', '%s'),
|
""" % (voucher_type, 'customer' if party_type == "Customer" else 'supplier', '%s'),
|
||||||
|
|||||||
Reference in New Issue
Block a user