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

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

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