Updated javascript
authorMartin Taal <martin.taal@openbravo.com>
Wed, 11 Nov 2015 23:42:26 +0100
changeset 1 c3b286dfee66
parent 0 fa16f0610f7b
child 2 4184d825caa1
Updated javascript
web/org.openbravo.retail.storeserver.howto/js/ob-storeserver-howto-add-button.js
--- a/web/org.openbravo.retail.storeserver.howto/js/ob-storeserver-howto-add-button.js	Wed Nov 11 14:00:22 2015 +0100
+++ b/web/org.openbravo.retail.storeserver.howto/js/ob-storeserver-howto-add-button.js	Wed Nov 11 23:42:26 2015 +0100
@@ -17,13 +17,11 @@
     content: 'Product Check',
     classes: 'btnlink-orange',
     tap: function () {
-      var process = new OB.DS.Process('org.openbravo.retail.posterminal.CheckProductStore');
+      var process = new OB.DS.Process('org.openbravo.retail.storeserver.howto.store.CheckProductStore');
       process.exec({
-        productId: this.owner.line.get('product'),
-        authenticationClient: decodeURIComponent(localStorage.authenticationClient),
-        authenticationToken: decodeURIComponent(localStorage.authenticationToken)
+        productId: this.owner.owner.line.get('product').get('id')
       }, function (data) {
-        OB.UTIL.showSuccess("CONTROLLER OFFLINE SUCCESS");
+        OB.UTIL.showSuccess("Call to server success count " + data[0].count + " from source " + data[0].source);
       });
     }
   });