From 520fb73676a0f23cc629558a947ea503c43735fe Mon Sep 17 00:00:00 2001 From: Saurabh Date: Sun, 26 Jun 2016 12:09:39 +0530 Subject: [PATCH] [fix] authorization rule fix for sales order --- erpnext/selling/doctype/sales_order/sales_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index 060ed621a8..2e0a272ae5 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -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')