From 6966fa4d88cac11311d0d4e4416684f75646148c Mon Sep 17 00:00:00 2001 From: Vishal Dhayagude Date: Tue, 21 Mar 2023 15:43:57 +0530 Subject: [PATCH] fix: POS not picking up pos profile company address instead fetch any random company address (#34521) --- erpnext/accounts/doctype/pos_invoice/pos_invoice.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/pos_invoice/pos_invoice.js b/erpnext/accounts/doctype/pos_invoice/pos_invoice.js index 56b857992c..cced37589b 100644 --- a/erpnext/accounts/doctype/pos_invoice/pos_invoice.js +++ b/erpnext/accounts/doctype/pos_invoice/pos_invoice.js @@ -112,7 +112,8 @@ erpnext.selling.POSInvoiceController = class POSInvoiceController extends erpnex party_type: "Customer", account: this.frm.doc.debit_to, price_list: this.frm.doc.selling_price_list, - pos_profile: pos_profile + pos_profile: pos_profile, + company_address: this.frm.doc.company_address }, () => { this.apply_pricing_rule(); });