mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
[Fix] POS not loading if pos profile not defined (#11778)
This commit is contained in:
committed by
Nabin Hait
parent
4a15711b04
commit
1b344ca81e
@@ -376,7 +376,7 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
|||||||
this.frm.script_manager.trigger("update_stock");
|
this.frm.script_manager.trigger("update_stock");
|
||||||
frappe.model.set_default_values(this.frm.doc);
|
frappe.model.set_default_values(this.frm.doc);
|
||||||
this.frm.cscript.calculate_taxes_and_totals();
|
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();
|
resolve();
|
||||||
|
|||||||
Reference in New Issue
Block a user