document.body.addEventListener('keyup', this.hotkey_handler);
- if( this.pos.config.iface_cashdrawer
- && this.pos.get('selectedOrder').get('paymentLines').find( function(pl){
- return pl.cashregister.journal.type === 'cash';
- })){
- this.pos.proxy.open_cashbox();
- }
this.add_action_button({
return;
}
+ if( this.pos.config.iface_cashdrawer
+ && this.pos.get('selectedOrder').get('paymentLines').find( function(pl){
+ return pl.cashregister.journal.type === 'cash';
+ })){
+ this.pos.proxy.open_cashbox();
+ }
+
if(options.invoice){
// deactivate the validation button while we try to send the order
this.pos_widget.action_bar.set_button_disabled('validation',true);