fix(shipping-address-display): Fetch shipping address display as per the shipping address (#15643)

This commit is contained in:
Shreya Shah
2018-10-11 10:13:27 +05:30
committed by Nabin Hait
parent 1cb1074f6b
commit 2291323c65
3 changed files with 6 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ class SellingController(StockController):
ignore_permissions=self.flags.ignore_permissions,
doctype=self.doctype, company=self.company,
fetch_payment_terms_template=fetch_payment_terms_template,
party_address=self.customer_address, shipping_address=self.shipping_address)
party_address=self.customer_address, shipping_address=self.shipping_address_name)
if not self.meta.get_field("sales_team"):
party_details.pop("sales_team")
self.update_if_missing(party_details)