module.ReceiptScreenWidget = module.ScreenWidget.extend({
template: 'ReceiptScreenWidget',
- show_numpad: true,
- show_leftpane: true,
+ show_numpad: false,
+ show_leftpane: false,
show: function(){
this._super();
});
this.refresh();
- this.print();
+
+ if (!this.pos.get('selectedOrder')._printed) {
+ this.print();
+ }
//
// The problem is that in chrome the print() is asynchronous and doesn't
}, 2000);
},
print: function() {
+ this.pos.get('selectedOrder')._printed = true;
window.print();
},
finishOrder: function() {