Pman.Tab.XtupleDashboard.js
"valueField": "ftype",
"width": 150,
"xtype": "ComboBox",
- "|dateRange": "function() {\n \n}\n",
+ "|dateRange": "function() {\n return {\n date_from : _this.mfrom.getValue(),\n date_to :Date.parseDate(_this.mfrom.getValue(), 'Y-n-d').add(Date.YEAR, 1).format('Y-m-d')\n \n };\n}\n",
"|xns": "Roo.form",
"items": [
{
valueField : 'ftype',
width : 150,
dateRange : function() {
-
+ return {
+ date_from : _this.mfrom.getValue(),
+ date_to :Date.parseDate(_this.mfrom.getValue(), 'Y-n-d').add(Date.YEAR, 1).format('Y-m-d')
+
+ };
},
store : {
xtype: 'SimpleStore',