From 739aa4d51a4868a2b0d4510c36010123a7add544 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Sat, 7 Nov 2015 20:28:12 +0530 Subject: [PATCH] [minor] allow pricing rule to have negative discount --- erpnext/accounts/doctype/pricing_rule/pricing_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py index bcdf9fcd5d..5209e8ec85 100644 --- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py +++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py @@ -59,7 +59,7 @@ class PricingRule(Document): self.set(f, None) def validate_price_or_discount(self): - for field in ["Price", "Discount Percentage"]: + for field in ["Price"]: if flt(self.get(frappe.scrub(field))) < 0: throw(_("{0} can not be negative").format(field))