1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.XtuplePriceLists = new Roo.XComponent({
6 part : ["Xtuple","PriceLists"],
7 order : '001-Pman.Tab.XtuplePriceLists',
9 parent : 'Pman.Tab.XtupleManage',
10 name : "Pman.Tab.XtuplePriceLists",
18 xtype: 'NestedLayoutPanel',
24 title : "Accounts Recievable",
26 xtype: 'BorderLayout',
33 activate : function() {
36 _this.grid.footer.onClick('first');
44 tableName : 'ipshead',
45 title : "Price Lists",
53 _this.dialog = Pman.Dialog.XtuplePriceList
54 if (_this.panel.active) {
55 this.footer.onClick('first');
58 rowdblclick : function (_self, rowIndex, e)
60 if (!_this.dialog) return;
61 _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
62 _this.grid.footer.onClick('first');
67 autoExpandColumn : 'ipshead_descrip',
73 sortInfo : { field : 'ipshead_name', direction: 'ASC' },
78 url : baseURL + '/Roo/ipshead.php'
83 totalProperty : 'total',
92 'name': 'ipshead_name',
96 'name': 'ipshead_descrip',
100 'name': 'ipshead_effective',
102 'dateFormat': 'Y-m-d'
105 'name': 'ipshead_expires',
107 'dateFormat': 'Y-m-d'
110 'name': 'ipshead_curr_id',
114 'name': 'ipshead_updated',
116 'dateFormat': 'Y-m-d'
119 'name': 'ipshead_curr_id_curr_id',
123 'name': 'ipshead_curr_id_curr_base',
127 'name': 'ipshead_curr_id_curr_name',
131 'name': 'ipshead_curr_id_curr_symbol',
135 'name': 'ipshead_curr_id_curr_abbr',
142 xtype: 'PagingToolbar',
145 displayMsg : "Displaying ipshead{0} - {1} of {2}",
146 emptyMsg : "No ipshead found",
157 click : function (_self, e)
161 url : baseURL + '/Roo/Ipsiteminfo',
168 text : "Download Price Matrix"
174 click : function (_self, e)
176 Pman.Dialog.Image.show(
178 _url : baseURL+'/Xtuple/Pricing'
184 msg.push("Deleted " + data.deleted + " Price(s)");
187 msg.push("Updated " + data.updated + " Price(s)");
190 msg.push("Added " + data.inserted + " Price(s)");
193 msg.push("No data changed");
195 Roo.MessageBox.alert("Notice", msg.join("\n"));
201 text : "Upload Price Matrix"
211 cls : 'x-btn-text-icon',
212 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
216 if (!_this.dialog) return;
217 _this.dialog.show( { id : 0 } , function() {
218 _this.grid.footer.onClick('first');
227 cls : 'x-btn-text-icon',
228 icon : rootURL + '/Pman/templates/images/trash.gif',
232 Pman.genericDelete(_this, 'ipshead');
240 xtype: 'ColumnModel',
242 dataIndex : 'ipshead_curr_id_curr_name',
243 header : 'Ipshead curr',
246 renderer : function(v) { return String.format('{0}', v); }
249 xtype: 'ColumnModel',
251 dataIndex : 'ipshead_name',
252 header : 'Ipshead name',
255 renderer : function(v) { return String.format('{0}', v); }
258 xtype: 'ColumnModel',
260 header : 'Ipshead descrip',
262 dataIndex : 'ipshead_descrip',
263 renderer : function(v) { return String.format('{0}', v); }
266 xtype: 'ColumnModel',
268 header : 'Ipshead effective',
270 dataIndex : 'ipshead_effective',
271 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
274 xtype: 'ColumnModel',
276 dataIndex : 'ipshead_expires',
277 header : 'Ipshead expires',
279 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
282 xtype: 'ColumnModel',
284 header : 'Ipshead updated',
286 dataIndex : 'ipshead_updated',
287 renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }
294 xtype: 'LayoutRegion',