diff --git a/web/com.openbravo.decathlon.retail.selfcheckout.crm/source/panels/scoConfirmExitPanel.js b/web/com.openbravo.decathlon.retail.selfcheckout.crm/source/panels/scoConfirmExitPanel.js
index c1061a6..1f13be8 100644
--- a/web/com.openbravo.decathlon.retail.selfcheckout.crm/source/panels/scoConfirmExitPanel.js
+++ b/web/com.openbravo.decathlon.retail.selfcheckout.crm/source/panels/scoConfirmExitPanel.js
@@ -19,42 +19,43 @@
         this.receipt.set('decscDecathlonid', '');
         this.receipt.set('crmInfo', {});
 
-        return Promise.resolve({
-          order: this.receipt
-        }) //
-          .then(OB.POS.ORDER.remove) //
-          .then(function(result) {
-            if (result) {
-              Promise.resolve(result)
-                .then(OB.POS.ORDER.create) //
-                .then(OB.POS.ORDER.load) //
-                .then(function() {
-                  // success
-                  OB.SCO.Utils.hideLoading();
-                })
-                ['catch'](
-                  function() {
+        return new Promise(function(resolve, reject) {
+          Promise.resolve({
+            order: me.receipt
+          }) //
+            .then(OB.POS.ORDER.remove) //
+            .then(function(result) {
+              if (result) {
+                Promise.resolve(result)
+                  .then(OB.POS.ORDER.create) //
+                  .then(OB.POS.ORDER.load) //
+                  .then(function() {
+                    // success
+                    OB.SCO.Utils.hideLoading();
+                    resolve();
+                  })
+                  .catch(function() {
                     // exception
                     OB.SCO.Utils.hideLoading();
                     OB.SCO.Utils.showTechnicalError();
-                  }.bind(me)
-                );
-            } else {
-              OB.SCO.Utils.hideLoading();
-            }
-          })
-          ['catch'](
-            function() {
+                    reject();
+                  });
+              } else {
+                OB.SCO.Utils.hideLoading();
+                reject();
+              }
+            })
+            .catch(function() {
               // exception
               OB.SCO.Utils.hideLoading();
-              this.executeEvent({
+              me.executeEvent({
                 name: 'GoTechnicalError'
               });
-            }.bind(this)
-          );
-      } else {
-        return Promise.resolve({});
+              reject();
+            });
+        });
       }
+      return Promise.resolve({});
     },
 
     actionConfirmExitYes: function(inSender, inEvent) {
