# HG changeset patch
# User Ranjith S R <ranjith@qualiantech.com>
# Date 1491567200 -19800
#      Fri Apr 07 17:43:20 2017 +0530
# Node ID 9b835ae56f9ae4fa028f182e85bb8ec7ca086b64
# Parent  ba728721bd3c0db5b6348a78f6f6a502aae66914
Related to issue 35712 : In Open Till, Approve Difference should be disabled once it clicked

diff -r ba728721bd3c -r 9b835ae56f9a web/org.openbravo.retail.sessions/js/countcash/countcash.js
--- a/web/org.openbravo.retail.sessions/js/countcash/countcash.js	Tue Apr 04 18:07:11 2017 +0200
+++ b/web/org.openbravo.retail.sessions/js/countcash/countcash.js	Fri Apr 07 17:43:20 2017 +0530
@@ -1,6 +1,6 @@
 /*
  ************************************************************************************
- * Copyright (C) 2012-2016 Openbravo S.L.U.
+ * Copyright (C) 2012-2017 Openbravo S.L.U.
  * Licensed under the Openbravo Commercial License version 1.0
  * You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
  * or in the legal folder of this module distribution.
@@ -23,6 +23,7 @@
     if (this.disabled) {
       return true;
     }
+    this.setDisabled(true);
     return OB.POS.hwserver.checkDrawer(function () {
       if (this.model.get('cashcountSent')) {
         return true;
@@ -431,6 +432,7 @@
   name: 'OB.OBPOSSession.CountCash.UI.LoginCashUp',
   kind: 'OB.OBPOSSession.CountCash.UI.CashUp',
   cancelAction: function () {
+    this.refresh();
     OB.MobileApp.view.$.dialogsContainer.$.logoutDialog.show();
   }
 });
