commit | 5472fff027ecbab8727280f09e8db914d6d7f060 | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Mon Dec 10 17:45:39 2018 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Mon Dec 10 17:45:39 2018 +0530 |
tree | f68f180aa12aa2fe3d7e86e87c92c9425596f284 | |
parent | bc0ef0becac2b80c7e70dde61292b5555080f9eb [diff] |
Added disabled field in the address (#16114)
diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index e5cdad1..7a91bd2 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py
@@ -537,7 +537,7 @@ '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)