1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleReconcile = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
38 title : "Reconcile account",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
54 this.load({ method: 'GET', params: { '_closedata' : _this.data.bankaccnt_id }});
57 if (action.type == 'load') {
61 if (action.type =='submit') {
67 _this.callback.call(_this, _this.form.getValues());
73 rendered : function (form)
77 actionfailed : function (_self, action)
80 Roo.MessageBox.alert("Error",
81 action.result ? action.result.errorMsg : "Error posting"
84 if (action.type == 'load') {
96 style : 'margin:10px;',
97 url : baseURL + '/Roo/bankrec.php',
102 fieldLabel : 'Bank Account',
103 name : 'bankrec_bankaccnt_id_bankaccnt_descrip',
110 fieldLabel : 'From date',
112 name : 'bankrec_opendate',
119 fieldLabel : 'End Date',
121 name : 'bankrec_enddate',
128 fieldLabel : 'Opening Balance',
129 name : 'bankrec_openbal',
136 fieldLabel : 'System close balance',
137 name : 'bankrec_endbal_prop',
144 fieldLabel : 'Real close balance',
145 name : 'bankrec_endbal',
158 name : 'bankrec_bankaccnt_id',
173 xtype: 'LayoutRegion',
181 click : function (_self, e)
192 click : function (_self, e)
198 _this.form.doAction("submit");