From f67372cfb339abb49bc3421d49d71ad1873ecd20 Mon Sep 17 00:00:00 2001 From: ashish Date: Thu, 16 Nov 2017 10:58:25 +0530 Subject: [PATCH] removed logic from delivery note for checking bypass credit limit flag --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index b85c9a8b047..85d102209ee 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -918,13 +918,6 @@ def make_delivery_note(source_name, target_doc=None): 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 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 - check_credit_limit(source.customer, source.company) - def update_item(source_doc, target_doc, source_parent): target_doc.qty = flt(source_doc.qty) - flt(source_doc.delivered_qty) target_doc.stock_qty = target_doc.qty * flt(source_doc.conversion_factor)