Merge pull request #41406 from frappe/mergify/bp/version-14-hotfix/pr-37031

fix: "Based on" field always has the value "Not applicable" (backport #37031)
This commit is contained in:
Akhil Narang
2024-05-10 16:44:33 +05:30
committed by GitHub

View File

@@ -53,8 +53,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()