1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleReceivePayment = {
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',
34 show : function (_self)
36 this.layout.getRegion('center').showPanel(0);
44 title : "Create Receive Payment",
48 xtype: 'ContentPanel',
56 actioncomplete : function(_self,action)
58 if (action.type == 'setdata') {
59 if(_this.data.cashrcpt_id){
60 _this.dialog.el.mask("Loading");
61 this.load({ method: 'GET', params: { '_id' : _this.data.cashrcpt_id }});
65 if (action.type == 'load') {
66 _this.dialog.el.unmask();
69 if (action.type =='submit') {
71 _this.dialog.el.unmask();
75 _this.callback.call(_this, _this.form.getValues());
81 rendered : function (form)
88 style : 'margin:10px;',
89 url : baseURL + '/Roo/cashrcpt.php',
97 fieldLabel : 'Amount Received',
98 name : 'cashrcpt_amount',
107 displayField : 'curr_name',
109 emptyText : "Select curr_name",
110 fieldLabel : 'Currency',
111 forceSelection : true,
112 hiddenName : 'cashrcpt_curr_id',
114 loadingText : "Searching...",
116 name : 'cashrcpt_curr_id_curr_name',
118 qtip : "Select Currency",
119 queryParam : 'query[curr_name]',
120 selectOnFocus : true,
121 tpl : '<div class="x-grid-cell-text x-btn button"><b>{curr_name}</b> </div>',
122 triggerAction : 'all',
124 valueField : 'curr_id',
130 beforeload : function (_self, o){
131 o.params = o.params || {};
137 sortInfo : { direction : 'ASC', field: 'curr_symbol' },
142 url : baseURL + '/Roo/curr_symbol.php'
149 totalProperty : 'total',
150 fields : [{"name":"curr_id","type":"int"},"curr_symbol"]
158 displayField : 'fname',
160 fieldLabel : 'Funds Type',
161 hiddenName : 'cashrcpt_fundstype',
164 name : 'cashrcpt_fundstype_name',
165 triggerAction : 'all',
166 valueField : 'ftype',
169 xtype: 'SimpleStore',
175 fields : [ 'ftype', 'fname']
182 fieldLabel : 'Check / Document #',
183 name : 'cashrcpt_docnumber',
190 fieldLabel : 'Check / Document Date',
192 name : 'cashrcpt_docdate',
199 fieldLabel : 'Distribution Date',
201 name : 'cashrcpt_distdate',
208 fieldLabel : 'Application Date',
210 name : 'cashrcpt_applydate',
217 displayField : 'bankaccnt_name',
219 emptyText : "Select Bank Accnt",
220 fieldLabel : 'Post to',
221 forceSelection : true,
222 hiddenName : 'cashrcpt_bankaccnt_id',
224 loadingText : "Searching...",
226 name : 'cashrcpt_bankaccnt_id_name',
228 qtip : "Select Bank Accnt",
229 queryParam : 'query[bankaccnt_name]',
230 selectOnFocus : true,
231 tpl : '<div class="x-grid-cell-text x-btn button"><b>{bankaccnt_name} - {bankaccnt_descrip}</b> </div>',
232 triggerAction : 'all',
234 valueField : 'bankaccnt_id',
240 beforeload : function (_self, o){
241 o.params = o.params || {};
247 sortInfo : { direction : 'DESC', field: 'bankaccnt_id' },
252 url : baseURL + '/Roo/bankaccnt.php'
259 totalProperty : 'total',
260 fields : [{"name":"bankaccnt_id","type":"int"},"bankaccnt_name"]
267 fieldLabel : 'Notes',
268 name : 'cashrcpt_notes'
278 name : 'cashrcpt_aropen_id'
283 name : 'cashrcpt_cust_id'
288 name : 'cashrcpt_salescat_id'
293 name : 'cashrcpt_discount'
298 name : 'cashrcpt_usecustdeposit'
306 xtype: 'LayoutRegion',
314 click : function (_self, e)
325 click : function (_self, e)
330 // _this.dialog.el.mask("Saving");
331 _this.form.doAction("submit");