From 01f4cc76fc65ae35ec99e0599818b141a2393f2e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 21 Mar 2023 16:06:54 +0530 Subject: [PATCH] fix: POS not picking up pos profile company address instead fetch any random company address (#34521) fix: POS not picking up pos profile company address instead fetch any random company address (#34521) (cherry picked from commit 6966fa4d88cac11311d0d4e4416684f75646148c) Co-authored-by: Vishal Dhayagude --- 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 56b857992c7..cced37589ba 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(); });