fix: "Based on" field always has the value "Not applicable"

This commit is contained in:
HarryPaulo 2023-09-11 17:57:31 -03:00
parent d739ab6ee3
commit fae640c56f

View File

@ -55,8 +55,6 @@ class AuthorizationRule(Document):
frappe.throw(_("Discount must be less than 100"))
elif self.based_on == "Customerwise Discount" and not self.master_name:
frappe.throw(_("Customer required for 'Customerwise Discount'"))
else:
self.based_on = "Not Applicable"
def validate(self):
self.check_duplicate_entry()