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

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

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