Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Tab.XtupleSalesShipment.bjs
index 637a86f..4f3d449 100644 (file)
 {
-    "id": "roo-file-396",
-    "name": "Pman.Tab.XtupleSalesShipment",
-    "parent": "Pman.Tab.XtupleSales",
-    "title": "",
-    "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleSalesShipment.bjs",
-    "items": [
+    "name" : "Pman.Tab.XtupleSalesShipment",
+    "parent" : "Pman.Tab.XtupleSales",
+    "title" : "",
+    "path" : "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleSalesShipment.bjs",
+    "permname" : "",
+    "modOrder" : "100",
+    "items" : [
         {
-            "|xns": "Roo",
-            "xtype": "GridPanel",
-            ".builderCfg": "{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}",
-            "title": "Fullfillments",
-            "fitToframe": true,
-            "fitContainer": true,
-            "tableName": "shiphead",
-            "background": true,
-            "region": "center",
-            "listeners": {
-                "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
+            "listeners" : {
+                "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
             },
-            "items": [
+            "fitToframe" : true,
+            "background" : true,
+            "region" : "center",
+            "xtype" : "GridPanel",
+            "title" : "Fullfillments",
+            "$ xns" : "Roo",
+            "fitContainer" : true,
+            "# builderCfg" : "{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}",
+            "tableName" : "shiphead",
+            "items" : [
                 {
-                    "listeners": {
-                        "|render": "function() \n{\n    _this.grid = this; \n    try { \n        _this.dialog = Pman.Dialog.XtupleSalesOrder;\n    } catch(e) {}\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                        "|rowdblclick": "function (_self, rowIndex, e)\n{\n     if (!_this.dialog) return;\n     \n     var d =  this.getDataSource().getAt(rowIndex).data;\n    _this.dialog.show( {\n        cohead_id : d.shiphead_order_id\n    \n    }, function() {\n        _this.grid.footer.onClick('refresh');\n        Pman.Tab.XtupleSales.grid.footer.onClick('first');\n    }); \n}\n"
+                    "listeners" : {
+                        "|rowdblclick" : "function (_self, rowIndex, e)\n{\n     if (!_this.dialog) return;\n     \n     var d =  this.getDataSource().getAt(rowIndex).data;\n    _this.dialog.show( {\n        cohead_id : d.shiphead_order_id\n    \n    }, function() {\n        _this.grid.footer.onClick('refresh');\n        Pman.Tab.XtupleSales.grid.footer.onClick('first');\n    }); \n}\n",
+                        "|render" : "function() \n{\n    _this.grid = this; \n    try { \n        _this.dialog = Pman.Dialog.XtupleSalesOrder;\n    } catch(e) {}\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
                     },
-                    "*prop": "grid",
-                    ".builderCfg": "{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}",
-                    "autoExpandColumn": "shiphead_notes",
-                    "loadMask": true,
-                    "xtype": "Grid",
-                    "|xns": "Roo.grid",
-                    "items": [
+                    "autoExpandColumn" : "shiphead_notes",
+                    "xtype" : "Grid",
+                    "loadMask" : true,
+                    "$ xns" : "Roo.grid",
+                    "* prop" : "grid",
+                    "# builderCfg" : "{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}",
+                    "items" : [
                         {
-                            "listeners": {
-                                "beforeload": "function (_self, options)\n{\n    options.params._status =  _this.status.getValue();\n    var cust = _this.custSel.getValue();\n    if (cust *1) {\n    \n    \n    }\n}"
+                            "listeners" : {
+                                "beforeload" : "function (_self, o)\n{\n    o.params._status =  _this.status.getValue();\n    var cust = _this.custSel.getValue();\n    if (cust *1) {\n         o.params.shiphead_custinfo_cust_id = cust;\n    }\n    \n    if (_this.fromDate.getValue()) {\n        o.params['search[fromDate]'] = _this.fromDate.getValue().format('Y-m-d');\n    }\n    if (_this.toDate.getValue()) {\n        o.params['search[toDate]'] = _this.toDate.getValue().format('Y-m-d');\n    }\n}"
                             },
-                            "*prop": "dataSource",
-                            "remoteSort": true,
-                            "xtype": "Store",
-                            "|sortInfo": "{ field : 'shiphead_notes', direction: 'ASC' }",
-                            "|xns": "Roo.data",
-                            "items": [
+                            "xtype" : "Store",
+                            "remoteSort" : true,
+                            "$ sortInfo" : "{ field : 'shiphead_shipdate', direction: 'DESC' }",
+                            "$ xns" : "Roo.data",
+                            "* prop" : "dataSource",
+                            "items" : [
                                 {
-                                    "*prop": "proxy",
-                                    "xtype": "HttpProxy",
-                                    "method": "GET",
-                                    "|url": "baseURL + '/Roo/shiphead.php'",
-                                    "|xns": "Roo.data"
+                                    "$ url" : "baseURL + '/Roo/shiphead.php'",
+                                    "method" : "GET",
+                                    "xtype" : "HttpProxy",
+                                    "$ xns" : "Roo.data",
+                                    "* prop" : "proxy"
                                 },
                                 {
-                                    "|xns": "Roo.data",
-                                    "xtype": "JsonReader",
-                                    "totalProperty": "total",
-                                    "root": "data",
-                                    ".builderCfg": "{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}",
-                                    "*prop": "reader",
-                                    "id": "id",
-                                    "|fields": "[\n    {\n        'name': 'shiphead_order_id',\n        'type': 'int'\n    },\n    {\n        'name': 'shiphead_number',\n        'type': 'string'\n    },\n    {\n        'name': 'shiphead_notes',\n        'type': 'string'\n    },\n    {\n        'name': 'shiphead_shipped',\n        'type': 'boolean'\n    },\n    {\n        'name': 'shiphead_shipdate',\n        'type': 'date'\n    },\n    {\n        'name': 'shiphead_sfstatus'\n    }\n]"
+                                    "id" : "id",
+                                    "root" : "data",
+                                    "xtype" : "JsonReader",
+                                    "$ xns" : "Roo.data",
+                                    "$ fields" : "[\n    {\n        'name': 'shiphead_order_id',\n        'type': 'int'\n    },\n    {\n        'name': 'shiphead_number',\n        'type': 'string'\n    },\n    {\n        'name': 'shiphead_notes',\n        'type': 'string'\n    },\n    {\n        'name': 'shiphead_shipped',\n        'type': 'boolean'\n    },\n    {\n        'name': 'shiphead_shipdate',\n        'type': 'date'\n    },\n    {\n        'name': 'shiphead_sfstatus'\n    }\n]",
+                                    "* prop" : "reader",
+                                    "totalProperty" : "total",
+                                    "# builderCfg" : "{\"cols\":[{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"},{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"},{\"table\":\"shiphead\",\"column\":\"shiphead_sfstatus\",\"columnshort\":\"shiphead_sfstatus\",\"ctype\":\"bpchar\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}],\"cols_ex\":[\"shiphead_notes\"],\"table\":\"shiphead\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}"
                                 }
                             ]
                         },
                         {
-                            "*prop": "footer",
-                            "xtype": "PagingToolbar",
-                            "pageSize": 25,
-                            "displayInfo": true,
-                            "displayMsg": "Displaying shiphead{0} - {1} of {2}",
-                            "emptyMsg": "No shiphead found",
-                            "|xns": "Roo",
-                            "items": [
+                            "pageSize" : 25,
+                            "xtype" : "PagingToolbar",
+                            "emptyMsg" : "No shiphead found",
+                            "$ xns" : "Roo",
+                            "displayInfo" : true,
+                            "displayMsg" : "Displaying shiphead{0} - {1} of {2}",
+                            "* prop" : "footer",
+                            "items" : [
                                 {
-                                    "listeners": {
-                                        "click": "function (_self, e)\n{\n    new Pman.Download({\n        grid: _this.grid\n    });\n    Roo.MessageBox.alert(\"Notice\", \"Download should start soon\");\n}"
+                                    "listeners" : {
+                                        "click" : "function (_self, e)\n{\n    new Pman.Download({\n        grid: _this.grid\n    });\n    Roo.MessageBox.alert(\"Notice\", \"Download should start soon\");\n}"
                                     },
-                                    "text": "Download",
-                                    "xtype": "Button",
-                                    "|xns": "Roo.Toolbar"
+                                    "text" : "Download",
+                                    "xtype" : "Button",
+                                    "$ xns" : "Roo.Toolbar"
                                 }
                             ]
                         },
                         {
-                            "*prop": "toolbar",
-                            "xtype": "Toolbar",
-                            "|xns": "Roo",
-                            "items": [
+                            "xtype" : "Toolbar",
+                            "$ xns" : "Roo",
+                            "* prop" : "toolbar",
+                            "items" : [
                                 {
-                                    "listeners": {
-                                        "select": "function (combo, record, index)\n{\n (function() {   _this.grid.footer.onClick('first'); }).defer(100);\n}",
-                                        "render": "function (_self)\n{\n\n}"
+                                    "listeners" : {
+                                        "render" : "function (_self)\n{\n    _this.custSel = _self;\n}",
+                                        "select" : "function (combo, record, index)\n{\n (function() {   _this.grid.footer.onClick('first'); }).defer(100);\n}"
                                     },
-                                    "allowBlank": false,
-                                    "displayField": "cust_name",
-                                    "editable": true,
-                                    "emptyText": "Select custinfo",
-                                    "fieldLabel": "cust_name",
-                                    "forceSelection": false,
-                                    "hiddenName": "cust_id",
-                                    "listWidth": 400,
-                                    "loadingText": "Searching...",
-                                    "minChars": 2,
-                                    "name": "cust_name",
-                                    "pageSize": 20,
-                                    "qtip": "Select Customer",
-                                    "queryParam": "query[cust_name]",
-                                    "selectOnFocus": true,
-                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> </div>",
-                                    "triggerAction": "all",
-                                    "typeAhead": true,
-                                    "valueField": "cust_id",
-                                    "width": 300,
-                                    "xtype": "ComboBox",
-                                    "|xns": "Roo.form",
-                                    "items": [
+                                    "listWidth" : 400,
+                                    "triggerAction" : "all",
+                                    "fieldLabel" : "cust_name",
+                                    "forceSelection" : false,
+                                    "selectOnFocus" : true,
+                                    "pageSize" : 20,
+                                    "displayField" : "cust_name",
+                                    "emptyText" : "Select custinfo",
+                                    "hiddenName" : "cust_id",
+                                    "minChars" : 2,
+                                    "valueField" : "cust_id",
+                                    "xtype" : "ComboBox",
+                                    "allowBlank" : true,
+                                    "typeAhead" : true,
+                                    "editable" : true,
+                                    "width" : 300,
+                                    "$ xns" : "Roo.form",
+                                    "name" : "cust_name",
+                                    "qtip" : "Select Customer",
+                                    "queryParam" : "query[cust_name_begin]",
+                                    "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> </div>",
+                                    "loadingText" : "Searching...",
+                                    "items" : [
                                         {
-                                            "listeners": {
-                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
+                                            "listeners" : {
+                                                "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
                                             },
-                                            "*prop": "store",
-                                            "remoteSort": true,
-                                            "xtype": "Store",
-                                            "|sortInfo": "{ direction : 'ASC', field: 'shiphead_shipdate' }",
-                                            "|xns": "Roo.data",
-                                            "items": [
+                                            "xtype" : "Store",
+                                            "remoteSort" : true,
+                                            "$ sortInfo" : "{ direction : 'ASC', field: 'cust_name' }",
+                                            "$ xns" : "Roo.data",
+                                            "* prop" : "store",
+                                            "items" : [
                                                 {
-                                                    "*prop": "proxy",
-                                                    "xtype": "HttpProxy",
-                                                    "method": "GET",
-                                                    "|xns": "Roo.data",
-                                                    "|url": "baseURL + '/Roo/custinfo.php'"
+                                                    "$ url" : "baseURL + '/Roo/custinfo.php'",
+                                                    "method" : "GET",
+                                                    "xtype" : "HttpProxy",
+                                                    "$ xns" : "Roo.data",
+                                                    "* prop" : "proxy"
                                                 },
                                                 {
-                                                    "*prop": "reader",
-                                                    "xtype": "JsonReader",
-                                                    "|xns": "Roo.data",
-                                                    "id": "cust_id",
-                                                    "root": "data",
-                                                    "totalProperty": "total",
-                                                    "|fields": "[{\"name\":\"cust_id\",\"type\":\"int\"},\"cust_name\"]"
+                                                    "id" : "cust_id",
+                                                    "root" : "data",
+                                                    "xtype" : "JsonReader",
+                                                    "$ xns" : "Roo.data",
+                                                    "$ fields" : "[{\"name\":\"cust_id\",\"type\":\"int\"},\"cust_name\"]",
+                                                    "* prop" : "reader",
+                                                    "totalProperty" : "total"
                                                 }
                                             ]
                                         }
                                     ]
                                 },
                                 {
-                                    "listeners": {
-                                        "render": "function (_self)\n{\n  _this.status = _self;\n}",
-                                        "beforeselect": "function (combo, record, index)\n{\n (function() {   _this.grid.footer.onClick('first'); }).defer(100);\n}"
+                                    "listeners" : {
+                                        "render" : "function (_self)\n{\n  _this.status = _self;\n}",
+                                        "beforeselect" : "function (combo, record, index)\n{\n (function() {   _this.grid.footer.onClick('first'); }).defer(100);\n}"
                                     },
-                                    "allowBlank": false,
-                                    "displayField": "fname",
-                                    "editable": false,
-                                    "fieldLabel": "Status",
-                                    "hiddenName": "status",
-                                    "listWidth": 200,
-                                    "mode": "local",
-                                    "name": "status",
-                                    "triggerAction": "all",
-                                    "value": "A",
-                                    "valueField": "ftype",
-                                    "width": 100,
-                                    "xtype": "ComboBox",
-                                    "|xns": "Roo.form",
-                                    "items": [
+                                    "listWidth" : 200,
+                                    "triggerAction" : "all",
+                                    "fieldLabel" : "Status",
+                                    "displayField" : "fname",
+                                    "hiddenName" : "status",
+                                    "value" : "S",
+                                    "valueField" : "ftype",
+                                    "xtype" : "ComboBox",
+                                    "allowBlank" : false,
+                                    "editable" : false,
+                                    "width" : 100,
+                                    "$ xns" : "Roo.form",
+                                    "mode" : "local",
+                                    "name" : "status",
+                                    "items" : [
                                         {
-                                            "*prop": "store",
-                                            "xtype": "SimpleStore",
-                                            "|data": "[ \n    [ 'S', \"Shipped\"],\n    [ 'R' , \"Reserved\"],\n    [ 'V' , \"Void Only\"],    \n    [ 'A', \"All\"] \n]\n",
-                                            "|fields": "[  'ftype', 'fname']",
-                                            "|xns": "Roo.data"
+                                            "xtype" : "SimpleStore",
+                                            "$ data" : "[ \n    [ 'S', \"Shipped\"],\n    [ 'R' , \"Reserved\"],\n    [ 'V' , \"Void Only\"],    \n    [ 'A', \"All\"] \n]\n",
+                                            "$ fields" : "[  'ftype', 'fname']",
+                                            "$ xns" : "Roo.data",
+                                            "* prop" : "store"
                                         }
                                     ]
+                                },
+                                {
+                                    "text" : "From:",
+                                    "xtype" : "TextItem",
+                                    "$ xns" : "Roo.Toolbar"
+                                },
+                                {
+                                    "listeners" : {
+                                        "render" : "function (_self)\n{\n    _this.fromDate = _self;\n}",
+                                        "select" : "function (combo, date)\n{\n    _this.grid.footer.onClick('first');\n}"
+                                    },
+                                    "format" : "Y-m-d",
+                                    "xtype" : "DateField",
+                                    "$ xns" : "Roo.form"
+                                },
+                                {
+                                    "text" : " To:",
+                                    "xtype" : "TextItem",
+                                    "$ xns" : "Roo.Toolbar"
+                                },
+                                {
+                                    "listeners" : {
+                                        "render" : "function (_self)\n{\n    _this.toDate = _self;\n}",
+                                        "select" : "function (combo, date)\n{\n    _this.grid.footer.onClick('first');\n}"
+                                    },
+                                    "format" : "Y-m-d",
+                                    "xtype" : "DateField",
+                                    "$ xns" : "Roo.form"
                                 }
                             ]
                         },
                         {
-                            "*prop": "colModel[]",
-                            ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"}",
-                            "dataIndex": "shiphead_order_id_cohead_number",
-                            "header": "Order#",
-                            "sortable": true,
-                            "width": 75,
-                            "xtype": "ColumnModel",
-                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                            "|xns": "Roo.grid"
+                            "xtype" : "ColumnModel",
+                            "sortable" : true,
+                            "header" : "Order#",
+                            "width" : 75,
+                            "$ renderer" : "function(v) { return String.format('{0}', v); }",
+                            "$ xns" : "Roo.grid",
+                            "* prop" : "colModel[]",
+                            "dataIndex" : "shiphead_order_id_cohead_number",
+                            "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"}"
+                        },
+                        {
+                            "xtype" : "ColumnModel",
+                            "header" : "Customer",
+                            "width" : 200,
+                            "$ renderer" : "function(v) { return String.format('{0}', v); }",
+                            "$ xns" : "Roo.grid",
+                            "* prop" : "colModel[]",
+                            "dataIndex" : "shiphead_custinfo_cust_name"
                         },
                         {
-                            "*prop": "colModel[]",
-                            "dataIndex": "shiphead_custinfo_cust_name",
-                            "header": "Customer",
-                            "width": 200,
-                            "xtype": "ColumnModel",
-                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                            "|xns": "Roo.grid"
+                            "xtype" : "ColumnModel",
+                            "sortable" : true,
+                            "header" : "Shipment#",
+                            "width" : 200,
+                            "$ renderer" : "function(v) { return String.format('{0}', v); }",
+                            "$ xns" : "Roo.grid",
+                            "* prop" : "colModel[]",
+                            "dataIndex" : "shiphead_number",
+                            "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"}"
                         },
                         {
-                            "*prop": "colModel[]",
-                            ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"}",
-                            "dataIndex": "shiphead_number",
-                            "header": "Shipment#",
-                            "sortable": true,
-                            "width": 200,
-                            "xtype": "ColumnModel",
-                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                            "|xns": "Roo.grid"
+                            "xtype" : "ColumnModel",
+                            "header" : "notes",
+                            "width" : 200,
+                            "$ renderer" : "function(v) { return String.format('{0}', v); }",
+                            "$ xns" : "Roo.grid",
+                            "* prop" : "colModel[]",
+                            "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}",
+                            "dataIndex" : "shiphead_notes"
                         },
                         {
-                            "xtype": "ColumnModel",
-                            ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}",
-                            "header": "notes",
-                            "width": 200,
-                            "dataIndex": "shiphead_notes",
-                            "|renderer": "function(v) { return String.format('{0}', v); }",
-                            "|xns": "Roo.grid",
-                            "*prop": "colModel[]"
+                            "xtype" : "ColumnModel",
+                            "header" : "Delivery Note#",
+                            "width" : 200,
+                            "$ renderer" : "function(v) { return String.format('{0}', v); }",
+                            "$ xns" : "Roo.grid",
+                            "* prop" : "colModel[]",
+                            "dataIndex" : "shiphead_delivery_note"
                         },
                         {
-                            "*prop": "colModel[]",
-                            ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}",
-                            "dataIndex": "shiphead_shipped",
-                            "header": "shipped",
-                            "width": 75,
-                            "xtype": "ColumnModel",
-                            "|renderer": "function(v,x,r) { \n\n\n\n  \n    if (r.json.shiphead_shipdate.length) {\n    \n        if (r.json.shiphead_shipped) {\n            return \"Confirmed\";\n        }\n    \n         return 'Draft';\n    }\n     \n    return 'VOID';\n   \n\n}",
-                            "|xns": "Roo.grid"
+                            "xtype" : "ColumnModel",
+                            "header" : "shipped",
+                            "width" : 75,
+                            "$ renderer" : "function(v,x,r) { \n\n\n\n  \n    if (r.json.shiphead_shipdate.length) {\n    \n        if (r.json.shiphead_shipped) {\n            return \"Confirmed\";\n        }\n    \n         return 'Draft';\n    }\n     \n    return 'VOID';\n   \n\n}",
+                            "$ xns" : "Roo.grid",
+                            "* prop" : "colModel[]",
+                            "dataIndex" : "shiphead_shipped",
+                            "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}"
                         },
                         {
-                            "*prop": "colModel[]",
-                            ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}",
-                            "dataIndex": "shiphead_shipdate",
-                            "header": "shipdate",
-                            "sortable": true,
-                            "width": 75,
-                            "xtype": "ColumnModel",
-                            "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
-                            "|xns": "Roo.grid"
+                            "xtype" : "ColumnModel",
+                            "sortable" : true,
+                            "header" : "shipdate",
+                            "width" : 75,
+                            "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
+                            "$ xns" : "Roo.grid",
+                            "* prop" : "colModel[]",
+                            "dataIndex" : "shiphead_shipdate",
+                            "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}"
                         }
                     ]
                 }
             ]
         }
-    ],
-    "permname": "",
-    "modOrder": "100"
+    ]
 }
\ No newline at end of file