1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Tab.XtupleSales = new Roo.XComponent({
6 part : ["Xtuple","Sales"],
7 order : '002-Pman.Tab.XtupleSales',
10 name : "Pman.Tab.XtupleSales",
18 xtype: 'NestedLayoutPanel',
21 activate : function () {
24 if (typeof(Pman.Login) != 'undefined') {
25 var db = baseURL.split('.php').shift().substr(-2,2)
27 this.setTitle('Sales (' + Pman.Login.authUser.dbname +')');
32 var c= _this.layout.getRegion('center');
33 c.showPanel(c.getActivePanel());
41 xtype: 'BorderLayout',
48 activate : function() {
51 _this.grid.footer.onClick('first');
68 //_this.dialog = Pman.Dialog.FILL_IN
69 if (_this.panel.active) {
70 this.footer.onClick('first');
73 rowdblclick : function (_self, rowIndex, e)
75 _this.dialog = Pman.Dialog.XtupleSalesOrder;
77 data = this.getDataSource().getAt(rowIndex).data;
80 { cohead_id : data.on_id_cohead_id } ,
82 _this.grid.footer.onClick('first');
83 Pman.Tab.XtupleSalesOrder.grid.footer.onClick('refresh');
89 autoExpandColumn : 'on_id',
95 beforeload : function (_self, options)
97 options.params._join = 'cohead';
98 options.params.on_table = 'cohead';
99 options.params._join_cols = 'cohead_number,cohead_id';
100 options.params.sort = '';
101 options.params.person_id = Pman.Login.authUser.id;
105 // &_join_cols=cohead_number
106 // &_columns=on_id_cohead_number,event_when << this is ignored at present.
107 // max(event_when) is not supported... by any query yet..
116 url : baseURL + '/Roo/events.php'
121 totalProperty : 'total',
133 xtype: 'PagingToolbar',
142 xtype: 'ColumnModel',
144 dataIndex : 'on_id_cohead_number',
147 renderer : function(v) { return String.format('{0}', v); }
154 xtype: 'LayoutRegion',
156 title : "last edited",
162 xtype: 'LayoutRegion',