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

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

index 45827d2..07cd9cf 100644 (file)
                                                                         },
                                                                         {
                                                                             "listeners": {
-                                                                                "click": "function (_self, e)\n{\n    new Pman.Download({\n        url :baseURL + '/Xtuple/Reports/SalesByCountry',\n       params : {\n        \n              date_from : _this.mfrom.getValue(),\n                    date_to :_this.mto.getValue()\n        }\n    \n    });\n}\n"
+                                                                                "click": "function (_self, e)\n{\n    new Pman.Download({\n        url :baseURL + '/Xtuple/Reports/SalesByCountry',\n        params :  _this.dateRange()\n    \n    });\n}\n"
                                                                             },
                                                                             "text": "Sales By Country",
                                                                             "xtype": "Item",
index af85869..a6e1790 100644 (file)
@@ -446,11 +446,7 @@ Pman.Tab.XtupleDashboard = new Roo.XComponent({
                                                                 {
                                                                     new Pman.Download({
                                                                         url :baseURL + '/Xtuple/Reports/SalesByCountry',
-                                                                       params : {
-                                                                        
-                                                                              date_from : _this.mfrom.getValue(),
-                                                                                    date_to :_this.mto.getValue()
-                                                                        }
+                                                                        params :  _this.dateRange()
                                                                     
                                                                     });
                                                                 }