2 "name" : "Pman.Tab.XtupleSalesShipment",
3 "parent" : "Pman.Tab.XtupleSales",
5 "path" : "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleSalesShipment.bjs",
11 "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "xtype" : "GridPanel",
17 "title" : "Fullfillments",
19 "fitContainer" : true,
20 "# 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\"}",
21 "tableName" : "shiphead",
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",
26 "|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}"
28 "autoExpandColumn" : "shiphead_notes",
33 "# 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\"}",
37 "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}"
41 "$ sortInfo" : "{ field : 'shiphead_shipdate', direction: 'DESC' }",
43 "* prop" : "dataSource",
46 "$ url" : "baseURL + '/Roo/shiphead.php'",
48 "xtype" : "HttpProxy",
55 "xtype" : "JsonReader",
57 "$ 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]",
59 "totalProperty" : "total",
60 "# 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\"}"
66 "xtype" : "PagingToolbar",
67 "emptyMsg" : "No shiphead found",
70 "displayMsg" : "Displaying shiphead{0} - {1} of {2}",
75 "click" : "function (_self, e)\n{\n new Pman.Download({\n grid: _this.grid\n });\n Roo.MessageBox.alert(\"Notice\", \"Download should start soon\");\n}"
79 "$ xns" : "Roo.Toolbar"
90 "render" : "function (_self)\n{\n _this.custSel = _self;\n}",
91 "select" : "function (combo, record, index)\n{\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}"
94 "triggerAction" : "all",
95 "fieldLabel" : "cust_name",
96 "forceSelection" : false,
97 "selectOnFocus" : true,
99 "displayField" : "cust_name",
100 "emptyText" : "Select custinfo",
101 "hiddenName" : "cust_id",
103 "valueField" : "cust_id",
104 "xtype" : "ComboBox",
109 "$ xns" : "Roo.form",
110 "name" : "cust_name",
111 "qtip" : "Select Customer",
112 "queryParam" : "query[cust_name_begin]",
113 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> </div>",
114 "loadingText" : "Searching...",
118 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
122 "$ sortInfo" : "{ direction : 'ASC', field: 'cust_name' }",
123 "$ xns" : "Roo.data",
127 "$ url" : "baseURL + '/Roo/custinfo.php'",
129 "xtype" : "HttpProxy",
130 "$ xns" : "Roo.data",
136 "xtype" : "JsonReader",
137 "$ xns" : "Roo.data",
138 "$ fields" : "[{\"name\":\"cust_id\",\"type\":\"int\"},\"cust_name\"]",
140 "totalProperty" : "total"
148 "render" : "function (_self)\n{\n _this.status = _self;\n}",
149 "beforeselect" : "function (combo, record, index)\n{\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}"
152 "triggerAction" : "all",
153 "fieldLabel" : "Status",
154 "displayField" : "fname",
155 "hiddenName" : "status",
157 "valueField" : "ftype",
158 "xtype" : "ComboBox",
159 "allowBlank" : false,
162 "$ xns" : "Roo.form",
167 "xtype" : "SimpleStore",
168 "$ data" : "[ \n [ 'S', \"Shipped\"],\n [ 'R' , \"Reserved\"],\n [ 'V' , \"Void Only\"], \n [ 'A', \"All\"] \n]\n",
169 "$ fields" : "[ 'ftype', 'fname']",
170 "$ xns" : "Roo.data",
177 "xtype" : "TextItem",
178 "$ xns" : "Roo.Toolbar"
182 "render" : "function (_self)\n{\n _this.fromDate = _self;\n}",
183 "select" : "function (combo, date)\n{\n _this.grid.footer.onClick('first');\n}"
186 "xtype" : "DateField",
191 "xtype" : "TextItem",
192 "$ xns" : "Roo.Toolbar"
196 "render" : "function (_self)\n{\n _this.toDate = _self;\n}",
197 "select" : "function (combo, date)\n{\n _this.grid.footer.onClick('first');\n}"
200 "xtype" : "DateField",
206 "xtype" : "ColumnModel",
210 "$ renderer" : "function(v) { return String.format('{0}', v); }",
211 "$ xns" : "Roo.grid",
212 "* prop" : "colModel[]",
213 "dataIndex" : "shiphead_order_id_cohead_number",
214 "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_order_id\",\"columnshort\":\"shiphead_order_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"Order#\"}"
217 "xtype" : "ColumnModel",
218 "header" : "Customer",
220 "$ renderer" : "function(v) { return String.format('{0}', v); }",
221 "$ xns" : "Roo.grid",
222 "* prop" : "colModel[]",
223 "dataIndex" : "shiphead_custinfo_cust_name"
226 "xtype" : "ColumnModel",
228 "header" : "Shipment#",
230 "$ renderer" : "function(v) { return String.format('{0}', v); }",
231 "$ xns" : "Roo.grid",
232 "* prop" : "colModel[]",
233 "dataIndex" : "shiphead_number",
234 "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_number\",\"columnshort\":\"shiphead_number\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":0,\"title\":\"Shipment#\"}"
237 "xtype" : "ColumnModel",
240 "$ renderer" : "function(v) { return String.format('{0}', v); }",
241 "$ xns" : "Roo.grid",
242 "* prop" : "colModel[]",
243 "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_notes\",\"columnshort\":\"shiphead_notes\",\"ctype\":\"text\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}",
244 "dataIndex" : "shiphead_notes"
247 "xtype" : "ColumnModel",
248 "header" : "Delivery Note#",
250 "$ renderer" : "function(v) { return String.format('{0}', v); }",
251 "$ xns" : "Roo.grid",
252 "* prop" : "colModel[]",
253 "dataIndex" : "shiphead_delivery_note"
256 "xtype" : "ColumnModel",
257 "header" : "shipped",
259 "$ 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}",
260 "$ xns" : "Roo.grid",
261 "* prop" : "colModel[]",
262 "dataIndex" : "shiphead_shipped",
263 "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_shipped\",\"columnshort\":\"shiphead_shipped\",\"ctype\":\"bool\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}"
266 "xtype" : "ColumnModel",
268 "header" : "shipdate",
270 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
271 "$ xns" : "Roo.grid",
272 "* prop" : "colModel[]",
273 "dataIndex" : "shiphead_shipdate",
274 "# builderCfg" : "{\"table\":\"shiphead\",\"column\":\"shiphead_shipdate\",\"columnshort\":\"shiphead_shipdate\",\"ctype\":\"date\",\"desc\":\"\",\"use\":1,\"use_ex\":\"\",\"title\":\"\"}"