Merge pull request #37031 from HarryPaulo/fix-auth-rule-based-on

fix: "Based on" field always has the value "Not applicable"
This commit is contained in:
Deepesh Garg 2023-09-13 20:26:28 +05:30 committed by GitHub
commit 1db05c80e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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