3 "name": "Pman.Tab.XtupleSalesShipment",
4 "parent": "Pman.Tab.XtupleSales",
6 "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleSalesShipment.bjs",
11 ".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\"}",
12 "title": "Fullfillments",
15 "tableName": "shiphead",
19 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
24 "|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}",
25 "|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"
28 ".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\"}",
29 "autoExpandColumn": "shiphead_notes",
36 "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}"
38 "*prop": "dataSource",
41 "|sortInfo": "{ field : 'shipdate', direction: 'DESC' }",
48 "|url": "baseURL + '/Roo/shiphead.php'",
53 "xtype": "JsonReader",
54 "totalProperty": "total",
56 ".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\"}",
59 "|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]"
65 "xtype": "PagingToolbar",
68 "displayMsg": "Displaying shiphead{0} - {1} of {2}",
69 "emptyMsg": "No shiphead found",
74 "click": "function (_self, e)\n{\n new Pman.Download({\n grid: _this.grid\n });\n Roo.MessageBox.alert(\"Notice\", \"Download should start soon\");\n}"
89 "select": "function (combo, record, index)\n{\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}",
90 "render": "function (_self)\n{\n _this.custSel = _self;\n}"
93 "displayField": "cust_name",
95 "emptyText": "Select custinfo",
96 "fieldLabel": "cust_name",
97 "forceSelection": false,
98 "hiddenName": "cust_id",
100 "loadingText": "Searching...",
104 "qtip": "Select Customer",
105 "queryParam": "query[cust_name]",
106 "selectOnFocus": true,
107 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> </div>",
108 "triggerAction": "all",
110 "valueField": "cust_id",
117 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
122 "|sortInfo": "{ direction : 'ASC', field: 'shiphead_shipdate' }",
127 "xtype": "HttpProxy",
130 "|url": "baseURL + '/Roo/custinfo.php'"
134 "xtype": "JsonReader",
138 "totalProperty": "total",
139 "|fields": "[{\"name\":\"cust_id\",\"type\":\"int\"},\"cust_name\"]"
147 "render": "function (_self)\n{\n _this.status = _self;\n}",
148 "beforeselect": "function (combo, record, index)\n{\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}"
151 "displayField": "fname",
153 "fieldLabel": "Status",
154 "hiddenName": "status",
158 "triggerAction": "all",
160 "valueField": "ftype",
167 "xtype": "SimpleStore",
168 "|data": "[ \n [ 'S', \"Shipped\"],\n [ 'R' , \"Reserved\"],\n [ 'V' , \"Void Only\"], \n [ 'A', \"All\"] \n]\n",
169 "|fields": "[ 'ftype', 'fname']",
177 "*prop": "colModel[]",
178 ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"}",
179 "dataIndex": "shiphead_order_id_cohead_number",
183 "xtype": "ColumnModel",
184 "|renderer": "function(v) { return String.format('{0}', v); }",
188 "*prop": "colModel[]",
189 "dataIndex": "shiphead_custinfo_cust_name",
190 "header": "Customer",
192 "xtype": "ColumnModel",
193 "|renderer": "function(v) { return String.format('{0}', v); }",
197 "*prop": "colModel[]",
198 ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"}",
199 "dataIndex": "shiphead_number",
200 "header": "Shipment#",
203 "xtype": "ColumnModel",
204 "|renderer": "function(v) { return String.format('{0}', v); }",
208 "xtype": "ColumnModel",
209 ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}",
212 "dataIndex": "shiphead_notes",
213 "|renderer": "function(v) { return String.format('{0}', v); }",
215 "*prop": "colModel[]"
218 "*prop": "colModel[]",
219 "dataIndex": "shiphead_delivery_note",
220 "header": "Delivery Note",
222 "xtype": "ColumnModel",
223 "|renderer": "function(v) { return String.format('{0}', v); }",
227 "*prop": "colModel[]",
228 ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}",
229 "dataIndex": "shiphead_shipped",
232 "xtype": "ColumnModel",
233 "|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}",
237 "*prop": "colModel[]",
238 ".builderCfg": "{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}",
239 "dataIndex": "shiphead_shipdate",
240 "header": "shipdate",
243 "xtype": "ColumnModel",
244 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",