1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.XtupleSalesShipment = new Roo.XComponent({
6 part : ["Xtuple","SalesShipment"],
7 order : '100-Pman.Tab.XtupleSalesShipment',
9 parent : 'Pman.Tab.XtupleSales',
10 name : "unnamed module",
20 title : "Fullfillments",
23 tableName : 'shiphead',
27 activate : function() {
30 _this.grid.footer.onClick('first');
42 _this.dialog = Pman.Dialog.XtupleSalesOrder;
44 if (_this.panel.active) {
45 this.footer.onClick('first');
48 rowdblclick : function (_self, rowIndex, e)
50 if (!_this.dialog) return;
52 var d = this.getDataSource().getAt(rowIndex).data;
54 cohead_id : d.shiphead_order_id
57 _this.grid.footer.onClick('refresh');
58 Pman.Tab.XtupleSales.grid.footer.onClick('first');
62 autoExpandColumn : 'shiphead_notes',
68 sortInfo : { field : 'shiphead_notes', direction: 'ASC' },
73 url : baseURL + '/Roo/shiphead.php'
78 totalProperty : 'total',
83 'name': 'shiphead_order_id',
87 'name': 'shiphead_number',
91 'name': 'shiphead_notes',
95 'name': 'shiphead_shipped',
99 'name': 'shiphead_shipdate',
103 'name': 'shiphead_sfstatus'
109 xtype: 'PagingToolbar',
113 displayMsg : "Displaying shiphead{0} - {1} of {2}",
114 emptyMsg : "No shiphead found",
120 click : function (_self, e)
125 Roo.MessageBox.alert("Notice", "Download should start soon");
141 emptyText : "Select custinfo",
142 forceSelection : true,
144 loadingText : "Searching...",
147 qtip : "Select Customer",
148 selectOnFocus : true,
149 triggerAction : 'all',
152 tpl : '<div class="x-grid-cell-text x-btn button"><b>{cust_name}</b> </div>',
153 queryParam : 'query[cust_name]',
154 fieldLabel : 'cust_name',
155 valueField : 'cust_id',
156 displayField : 'cust_name',
157 hiddenName : 'cust_id',
163 beforeload : function (_self, o){
164 o.params = o.params || {};
169 sortInfo : { direction : 'ASC', field: 'shiphead_shipdate' },
174 url : baseURL + '/Roo/custinfo.php'
181 totalProperty : 'total',
182 fields : [{"name":"cust_id","type":"int"},"cust_name"]
190 xtype: 'ColumnModel',
192 dataIndex : 'shiphead_order_id_cohead_number',
196 renderer : function(v) { return String.format('{0}', v); }
199 xtype: 'ColumnModel',
201 dataIndex : 'shiphead_custinfo_cust_name',
204 renderer : function(v) { return String.format('{0}', v); }
207 xtype: 'ColumnModel',
209 dataIndex : 'shiphead_number',
210 header : 'Shipment#',
213 renderer : function(v) { return String.format('{0}', v); }
216 xtype: 'ColumnModel',
220 dataIndex : 'shiphead_notes',
221 renderer : function(v) { return String.format('{0}', v); }
224 xtype: 'ColumnModel',
226 dataIndex : 'shiphead_shipped',
229 renderer : function(v,x,r) {
234 if (r.json.shiphead_shipdate.length) {
236 if (r.json.shiphead_shipped) {
249 xtype: 'ColumnModel',
251 dataIndex : 'shiphead_shipdate',
255 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }