From 5472fff027ecbab8727280f09e8db914d6d7f060 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 10 Dec 2018 17:45:39 +0530 Subject: [PATCH] Added disabled field in the address (#16114) --- erpnext/accounts/party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index e5cdad1f94b..7a91bd2dc5e 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py @@ -537,7 +537,7 @@ def get_party_shipping_address(doctype, name): 'dl.link_doctype=%s ' 'and dl.link_name=%s ' 'and dl.parenttype="Address" ' - 'and ' + 'and ifnull(ta.disabled, 0) = 0 and' '(ta.address_type="Shipping" or ta.is_shipping_address=1) ' 'order by ta.is_shipping_address desc, ta.address_type desc limit 1', (doctype, name)