[Fix] POS not loading if pos profile not defined (#11778)

This commit is contained in:
rohitwaghchaure 2017-11-29 16:21:51 +05:30 committed by Nabin Hait
parent 4a15711b04
commit 1b344ca81e

View File

@ -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();