mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
[minor] allow pricing rule to have negative discount
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user