var self = this;
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
// execute until all rpc are finished. So it conflicts with the rpc used
}
},
print: function() {
+ this.pos.get('selectedOrder')._printed = true;
window.print();
},
finish_order: function() {