Pman.Tab.XtupleDashboard.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 8 May 2014 03:46:24 +0000 (11:46 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 8 May 2014 03:46:24 +0000 (11:46 +0800)
Pman.Tab.XtupleDashboard.js

Pman.Tab.XtupleDashboard.bjs
Pman.Tab.XtupleDashboard.js

index 12c7051..e639879 100644 (file)
                                                                         },
                                                                         {
                                                                             "listeners": {
-                                                                                "click": "function (_self, e)\n{\n    new Pman.Download({\n        url :baseURL + '/Xtuple/Reports/StockAtLocation',\n         params :  _this.dateRange()\n    \n    });\n    Roo.MessageBox.alert(\"Downloading\", \n        \"The file will start downloading shortly - it may take around 1-2 minutes to calculate\");\n    \n}\n"
+                                                                                "click": "function (_self, e)\n{\n    new Pman.Download({\n        url :baseURL + '/Xtuple/Reports/StockAtLocation',\n         params :  _this.viewType.dateRange()\n    \n    });\n    Roo.MessageBox.alert(\"Downloading\", \n        \"The file will start downloading shortly - it may take around 1-2 minutes to calculate\");\n    \n}\n"
                                                                             },
                                                                             "text": "Historical Stock Levels (EO HKFY)",
                                                                             "xtype": "Item",
index d736abd..41d954a 100644 (file)
@@ -510,7 +510,7 @@ Pman.Tab.XtupleDashboard = new Roo.XComponent({
                                                                 {
                                                                     new Pman.Download({
                                                                         url :baseURL + '/Xtuple/Reports/StockAtLocation',
-                                                                         params :  _this.dateRange()
+                                                                         params :  _this.viewType.dateRange()
                                                                     
                                                                     });
                                                                     Roo.MessageBox.alert("Downloading",