diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 99196b29847..0bb4dda8da9 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -407,7 +407,7 @@ class SalesInvoice(SellingController): for field in ['taxes_and_charges', 'company_address']: if pos.get(field): - self.set(field, pos.get(fieldname)) + self.set(field, pos.get(field)) if not customer_price_list: self.set('selling_price_list', pos.get('selling_price_list'))