From 565936442d4062513c975d8f2f1ca3c07a164d5a Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Sun, 21 Jul 2019 22:53:13 +0530 Subject: [PATCH] fix: pos not working --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'))