[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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user