From 31215c9bcefd8cb8157db4d7bf643aa962d78b26 Mon Sep 17 00:00:00 2001
From: Frederic van der Essen <fva@openerp.com / fvdessen+o@gmail.com>
Date: Wed, 17 Sep 2014 16:14:30 +0200
Subject: [PATCH] [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

---
 addons/point_of_sale/static/src/js/screens.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js
index 3ca2a81e45b8..2ce5adf24a7b 100644
--- a/addons/point_of_sale/static/src/js/screens.js
+++ b/addons/point_of_sale/static/src/js/screens.js
@@ -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();
             }
 
-- 
GitLab