From 6d83454237d77fe9c484fa6f1e03dfad1af5cdee Mon Sep 17 00:00:00 2001 From: ankitjavalkarwork Date: Fri, 10 Oct 2014 13:30:10 +0530 Subject: [PATCH] Disallow Stopped Orders in Against Voucher table --- erpnext/accounts/doctype/payment_tool/payment_tool.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/doctype/payment_tool/payment_tool.py b/erpnext/accounts/doctype/payment_tool/payment_tool.py index d8d6df3da2..578a3168ea 100644 --- a/erpnext/accounts/doctype/payment_tool/payment_tool.py +++ b/erpnext/accounts/doctype/payment_tool/payment_tool.py @@ -91,6 +91,7 @@ def get_orders_to_be_billed(party_type, party_name): where %s = %s and docstatus = 1 + and ifnull(status, "") != "Stopped" and ifnull(grand_total, 0) > ifnull(advance_paid, 0) and ifnull(per_billed, 0) < 100.0 """ % (voucher_type, 'customer' if party_type == "Customer" else 'supplier', '%s'),