Merge pull request #29635 from deepeshgarg007/sales_invoice_tax_template

fix: Incorrect tax template in Sales Invoice via data import
This commit is contained in:
Deepesh Garg
2022-02-06 18:58:43 +05:30
committed by GitHub

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)