feat: multiple company pos profile
diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js
index d2c2d70..5b7f241 100644
--- a/erpnext/selling/page/point_of_sale/point_of_sale.js
+++ b/erpnext/selling/page/point_of_sale/point_of_sale.js
@@ -451,7 +451,7 @@
 
 	change_pos_profile() {
 		return new Promise((resolve) => {
-			const on_submit = ({ pos_profile, set_as_default }) => {
+			const on_submit = ({ company, pos_profile, set_as_default }) => {
 				if (pos_profile) {
 					this.pos_profile = pos_profile;
 				}
@@ -461,7 +461,7 @@
 						method: "erpnext.accounts.doctype.pos_profile.pos_profile.set_default_profile",
 						args: {
 							'pos_profile': pos_profile,
-							'company': this.frm.doc.company
+							'company': company
 						}
 					}).then(() => {
 						this.on_change_pos_profile();
@@ -495,8 +495,20 @@
 	}
 
 	get_prompt_fields() {
+		var company_field = this.frm.doc.company;
 		return [{
 			fieldtype: 'Link',
+			label: __('Company'),
+			options: 'Company',
+			fieldname: 'company',
+			default: this.frm.doc.company,
+			reqd: 1,
+			onchange: function(e) {
+					company_field = this.value;
+				}
+			},
+			{
+			fieldtype: 'Link',
 			label: __('POS Profile'),
 			options: 'POS Profile',
 			fieldname: 'pos_profile',
@@ -505,7 +517,7 @@
 				return {
 					query: 'erpnext.accounts.doctype.pos_profile.pos_profile.pos_profile_query',
 					filters: {
-						company: this.frm.doc.company
+						company: company_field
 					}
 				};
 			}