[fix] authorization rule fix for sales order

This commit is contained in:
Saurabh 2016-06-26 12:09:39 +05:30
parent 494f0e279c
commit 520fb73676

View File

@ -153,7 +153,7 @@ class SalesOrder(SellingController):
self.check_credit_limit()
self.update_reserved_qty()
frappe.get_doc('Authorization Control').validate_approving_authority(self.doctype, self.base_grand_total, self)
frappe.get_doc('Authorization Control').validate_approving_authority(self.doctype, self.company, self.base_grand_total, self)
self.update_prevdoc_status('submit')