1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.XtupleTerms = {
12 show : function(data, cb)
20 this.dialog.show(this.data._el);
23 this.form.setValues(data);
24 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
32 this.dialog = Roo.factory({
35 xtype : 'LayoutRegion',
41 title : "Create / Edit Terms",
42 xtype : 'LayoutDialog',
55 click : function (_self, e)
67 click : function (_self, e)
73 _this.form.doAction("submit");
83 xtype : 'ContentPanel',
88 url : baseURL + '/Roo/terms.php',
91 style : 'margin:10px;',
95 actioncomplete : function(_self,action)
97 if (action.type == 'setdata') {
99 this.load({ method: 'GET', params: { _id : _this.data.id}});
105 if (action.type == 'load') {
108 if (action.type =='submit') {
112 if (_this.callback) {
113 _this.callback.call(_this, _this.form.getValues());
120 rendered : function (form)
137 fieldLabel : 'Description',
141 name : 'terms_descrip'
146 fieldLabel : 'Due Days',
147 allowDecimals : true,
148 xtype : 'NumberField',
149 decimalPrecision : 0,
153 name : 'terms_duedays',
158 fieldLabel : 'Discount Day',
159 allowDecimals : true,
160 xtype : 'NumberField',
161 decimalPrecision : 0,
165 name : 'terms_discdays',
170 fieldLabel : 'Cut Off Day',
171 xtype : 'NumberField',
172 allowDecimals : true,
173 decimalPrecision : 0,
177 name : 'terms_cutoffday',
183 fieldLabel : 'Used in Payables',
193 fieldLabel : 'Used in Receivables',