[hotfix] don't override default print format if specified in POS Sales Invoice
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
index 70fc272..698200f 100644
--- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
+++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
@@ -34,8 +34,9 @@
 			}
 		}
 
-		// if document is POS then change default print format to "POS Invoice"
-		if(cur_frm.doc.is_pos && cur_frm.doc.docstatus===1) {
+		// if document is POS then change default print format to "POS Invoice" if no default is specified
+		if(cur_frm.doc.is_pos && cur_frm.doc.docstatus===1 && cint(frappe.defaults.get_user_defaults("fs_pos_view"))===1
+			&& !locals.DocType[cur_frm.doctype].default_print_format) {
 			locals.DocType[cur_frm.doctype].default_print_format = "POS Invoice";
 			cur_frm.setup_print_layout();
 		}