mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
set the pos profile in the sales invoice
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user