Merge pull request #29670 from frappe/mergify/bp/develop/pr-29635

fix: Incorrect tax template in Sales Invoice via data import (backport #29635)
This commit is contained in:
Deepesh Garg 2022-02-07 10:42:31 +05:30 committed by GitHub
commit 400b579f1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,8 @@ class SellingController(StockController):
doctype=self.doctype, company=self.company,
posting_date=self.get('posting_date'),
fetch_payment_terms_template=fetch_payment_terms_template,
party_address=self.customer_address, shipping_address=self.shipping_address_name)
party_address=self.customer_address, shipping_address=self.shipping_address_name,
company_address=self.get('company_address'))
if not self.meta.get_field("sales_team"):
party_details.pop("sales_team")
self.update_if_missing(party_details)