From fae640c56fa21acf18c1ebb7f9aea1a440e7a46e Mon Sep 17 00:00:00 2001 From: HarryPaulo Date: Mon, 11 Sep 2023 17:57:31 -0300 Subject: [PATCH] fix: "Based on" field always has the value "Not applicable" --- erpnext/setup/doctype/authorization_rule/authorization_rule.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/erpnext/setup/doctype/authorization_rule/authorization_rule.py b/erpnext/setup/doctype/authorization_rule/authorization_rule.py index 44bd826fc6e4..674cd819689a 100644 --- a/erpnext/setup/doctype/authorization_rule/authorization_rule.py +++ b/erpnext/setup/doctype/authorization_rule/authorization_rule.py @@ -55,8 +55,6 @@ def validate_rule(self): 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()