[minor] allow pricing rule to have negative discount

This commit is contained in:
Rushabh Mehta 2015-11-07 20:28:12 +05:30
parent 87b5fcb3b5
commit 739aa4d51a

View File

@ -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))