# HG changeset patch
# User Rafa Alonso <rafael.alonso@openbravo.com>
# Date 1424712390 -3600
#      Mon Feb 23 18:26:30 2015 +0100
# Node ID b9a24e15bf413cfc8257bd23154f38c992c343fc
# Parent  9c035e7fc853f4366a491b0f60f3d318f8a3948c
Fixes issue 29034: The loading window is no longer shown when the receipt is paid

diff -r 9c035e7fc853 -r b9a24e15bf41 web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
--- a/web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js	Mon Feb 23 16:51:00 2015 +0100
+++ b/web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js	Mon Feb 23 18:26:30 2015 +0100
@@ -404,7 +404,6 @@ OB.OBPOSPointOfSale.Model.PointOfSale = 
     });
 
     receipt.on('paymentAccepted', function () {
-      OB.UTIL.showLoading(true);
       receipt.prepareToSend(function () {
         //Create the negative payment for change
         var oldChange = receipt.get('change'),
@@ -474,7 +473,6 @@ OB.OBPOSPointOfSale.Model.PointOfSale = 
                 offline: true
               });
               orderList.deleteCurrent();
-              OB.UTIL.showLoading(false);
             }
           });
         } else {
@@ -497,7 +495,6 @@ OB.OBPOSPointOfSale.Model.PointOfSale = 
                 offline: true
               });
               orderList.deleteCurrent();
-              OB.UTIL.showLoading(false);
             }
           });
         }
