Merge pull request #2722 from nabinhait/fix1
minor fix in authorization rule
This commit is contained in:
commit
c3fc490d53
@ -94,6 +94,9 @@ class AuthorizationControl(TransactionBase):
|
|||||||
self.validate_auth_rule(doctype_name, auth_value, based_on, add_cond, company)
|
self.validate_auth_rule(doctype_name, auth_value, based_on, add_cond, company)
|
||||||
|
|
||||||
def validate_approving_authority(self, doctype_name,company, total, doc_obj = ''):
|
def validate_approving_authority(self, doctype_name,company, total, doc_obj = ''):
|
||||||
|
if not frappe.db.count("Authorization Rule"):
|
||||||
|
return
|
||||||
|
|
||||||
av_dis = 0
|
av_dis = 0
|
||||||
if doc_obj:
|
if doc_obj:
|
||||||
price_list_rate, base_rate = 0, 0
|
price_list_rate, base_rate = 0, 0
|
||||||
|
Loading…
Reference in New Issue
Block a user