minor fix in authorization rule

This commit is contained in:
Nabin Hait 2015-02-11 12:24:45 +05:30
parent c5fb88c1cd
commit 108e935744

View File

@ -94,6 +94,9 @@ class AuthorizationControl(TransactionBase):
self.validate_auth_rule(doctype_name, auth_value, based_on, add_cond, company)
def validate_approving_authority(self, doctype_name,company, total, doc_obj = ''):
if not frappe.db.count("Authorization Rule"):
return
av_dis = 0
if doc_obj:
price_list_rate, base_rate = 0, 0