From 3f0dfd720fb9457422d76e6649725bced97ee3ab Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Fri, 27 Oct 2017 15:20:33 +0530 Subject: [PATCH] set the pos profile in the sales invoice --- erpnext/accounts/doctype/sales_invoice/sales_invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 1c4fe3d084..888520ac76 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -305,6 +305,7 @@ class SalesInvoice(SellingController): self.account_for_change_amount = frappe.db.get_value('Company', self.company, 'default_cash_account') if pos: + self.pos_profile = pos.name if not for_validate and not self.customer: self.customer = pos.customer self.mode_of_payment = pos.mode_of_payment