Merge pull request #2722 from nabinhait/fix1

minor fix in authorization rule
This commit is contained in:
Nabin Hait 2015-02-11 12:25:16 +05:30
commit c3fc490d53

View File

@ -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