# HG changeset patch
# User Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
# Date 1444024836 -7200
#      Mon Oct 05 08:00:36 2015 +0200
# Node ID c3499ace1546d496ea9439a51582bc287885607b
# Parent  b70def10baf657a615021299c25522008096eb17
Fixed issue 31035: Hooks which were created using an old API now are using the current API

diff -r b70def10baf6 -r c3499ace1546 web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-left.js
--- a/web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-left.js	Wed Sep 30 22:04:07 2015 +0200
+++ b/web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-left.js	Mon Oct 05 08:00:36 2015 +0200
@@ -69,7 +69,7 @@
   },
   tap: function () {
     var me = this;
-    OB.MobileApp.model.hookManager.executeHooks('OBPOS_PreCreateNewReceipt', {
+    OB.UTIL.HookManager.executeHooks('OBPOS_PreCreateNewReceipt', {
       model: this.model,
       context: this
     }, function (args) {
@@ -96,7 +96,7 @@
           }
         }
         me.doAddNewOrder();
-        OB.MobileApp.model.hookManager.executeHooks('OBPOS_PostAddNewReceipt', {
+        OB.UTIL.HookManager.executeHooks('OBPOS_PostAddNewReceipt', {
           model: me.model,
           context: me
         }, function () {
