From 1b344ca81eff4838323603bad317cab433aa70f3 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 29 Nov 2017 16:21:51 +0530 Subject: [PATCH] [Fix] POS not loading if pos profile not defined (#11778) --- erpnext/selling/page/point_of_sale/point_of_sale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ee64e65b74..4c8ba08461 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.js +++ b/erpnext/selling/page/point_of_sale/point_of_sale.js @@ -376,7 +376,7 @@ erpnext.pos.PointOfSale = class PointOfSale { this.frm.script_manager.trigger("update_stock"); frappe.model.set_default_values(this.frm.doc); this.frm.cscript.calculate_taxes_and_totals(); - this.frm.meta.default_print_format = r.message.print_format || 'POS Invoice'; + this.frm.meta.default_print_format = r.message ? r.message.print_format : 'POS Invoice'; } resolve();