From f17ca7866a2bd7fd60dddf1be8dcc0f54b7b89cf Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 16 Nov 2017 11:08:14 +0530 Subject: [PATCH] removed names from comments --- erpnext/selling/doctype/sales_order/sales_order.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index cd6e8144eb9..a87ccf6b0de 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -196,11 +196,10 @@ class SalesOrder(SellingController): def check_credit_limit(self): from erpnext.selling.doctype.customer.customer import check_credit_limit - #PR : 10861, Author : ashish-greycube & jigneshpshah, Email:mr.ashish.shah@gmail.com # bypass credit limit check is set to true (1) at sales order level, then we need not to check credit limit and vise versa bypass_credit_limit_check_at_sales_order = cint(frappe.db.get_value("Customer", self.customer, "bypass_credit_limit_check_at_sales_order")) if bypass_credit_limit_check_at_sales_order == 0: - check_credit_limit(self.customer, self.company) + check_credit_limit(self.customer, self.company) def check_nextdoc_docstatus(self): # Checks Delivery Note @@ -467,9 +466,7 @@ def make_delivery_note(source_name, target_doc=None): target.po_no = ", ".join(list(set(target_po_no))) if len(target_po_no) > 1 else target_po_no[0] else: target.po_no = source.po_no - - #PR : 10861, Author : ashish-greycube & jigneshpshah, Email:mr.ashish.shah@gmail.com - # Since the credit limit check is bypassed at sales order level, we need to check it at delivery note +# Since the credit limit check is bypassed at sales order level, we need to check it at delivery note bypass_credit_limit_check_at_sales_order = cint(frappe.db.get_value("Customer", source.customer, "bypass_credit_limit_check_at_sales_order")) if bypass_credit_limit_check_at_sales_order == 1: from erpnext.selling.doctype.customer.customer import check_credit_limit @@ -538,9 +535,7 @@ def make_sales_invoice(source_name, target_doc=None, ignore_permissions=False): target.flags.ignore_permissions = True target.run_method("set_missing_values") target.run_method("calculate_taxes_and_totals") - - #PR : 10861, Author : ashish-greycube & jigneshpshah, Email:mr.ashish.shah@gmail.com - # Since the credit limit check is bypassed at sales order level, we need to check it at sales invoice + # Since the credit limit check is bypassed at sales order level, we need to check it at sales invoice bypass_credit_limit_check_at_sales_order = cint(frappe.db.get_value("Customer", source.customer, "bypass_credit_limit_check_at_sales_order")) if bypass_credit_limit_check_at_sales_order == 1: from erpnext.selling.doctype.customer.customer import check_credit_limit