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

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

index 07cd9cf..cb9a1b3 100644 (file)
                                                                     "items": [
                                                                         {
                                                                             "listeners": {
-                                                                                "click": "function (_self, e)\n{\n    new Pman.Download({\n        url :baseURL + '/Xtuple/Reports/SalesByCustomer',\n        params : {\n        \n              date_from : _this.mfrom.getValue(),\n                    date_to :_this.mto.getValue()\n        }\n         \n    \n    });\n}\n"
+                                                                                "click": "function (_self, e)\n{\n    new Pman.Download({\n        url :baseURL + '/Xtuple/Reports/SalesByCustomer',\n        params : _this.dateRange()\n         \n    \n    });\n}\n"
                                                                             },
                                                                             "text": "Sales By Customer",
                                                                             "xtype": "Item",
index a6e1790..68cf0bc 100644 (file)
@@ -426,11 +426,7 @@ Pman.Tab.XtupleDashboard = new Roo.XComponent({
                                                                 {
                                                                     new Pman.Download({
                                                                         url :baseURL + '/Xtuple/Reports/SalesByCustomer',
-                                                                        params : {
-                                                                        
-                                                                              date_from : _this.mfrom.getValue(),
-                                                                                    date_to :_this.mto.getValue()
-                                                                        }
+                                                                        params : _this.dateRange()
                                                                          
                                                                     
                                                                     });