[IMP] point_of_sale: opening the cashbox only if paying with cash was problematic as you sometimes need to use the cashbox with bank payment methods such as ticket meals

This commit is contained in:
Frederic van der Essen
2014-09-17 16:57:34 +02:00
parent 5377a9e2d6
commit 31215c9bce
@@ -1264,10 +1264,7 @@ function openerp_pos_screens(instance, module){ //module is instance.point_of_sa
}
}
if( this.pos.config.iface_cashdrawer
&& this.pos.get('selectedOrder').get('paymentLines').find( function(pl){
return pl.cashregister.journal.type === 'cash';
})){
if (this.pos.config.iface_cashdrawer) {
this.pos.proxy.open_cashbox();
}