Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleReceivePayment.bjs
1 {
2     "id": "roo-file-20",
3     "name": "Pman.Dialog.XtupleReceivePayment",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleReceivePayment.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "show": "function (_self)\n{\n    this.layout.getRegion('center').showPanel(0);\n}"
11             },
12             "closable": false,
13             "collapsible": false,
14             "height": 400,
15             "modal": true,
16             "resizable": false,
17             "title": "Create Receive Payment",
18             "width": 600,
19             "xtype": "LayoutDialog",
20             "|xns": "Roo",
21             "items": [
22                 {
23                     "|xns": "Roo",
24                     "xtype": "LayoutRegion",
25                     "*prop": "center"
26                 },
27                 {
28                     "region": "center",
29                     "xtype": "ContentPanel",
30                     "|xns": "Roo",
31                     "items": [
32                         {
33                             "listeners": {
34                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n        if(_this.data.cashrcpt_id){\n           _this.dialog.el.mask(\"Loading\");\n           this.load({ method: 'GET', params: { '_id' : _this.data.cashrcpt_id }});\n           return;\n       }\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
35                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
36                             },
37                             "labelWidth": 150,
38                             "method": "POST",
39                             "style": "margin:10px;",
40                             "xtype": "Form",
41                             "|url": "baseURL + '/Roo/cashrcpt.php'",
42                             "|xns": "Roo.form",
43                             "items": [
44                                 {
45                                     "allowBlank": false,
46                                     "allowDecimals": true,
47                                     "decimalPrecision": 2,
48                                     "fieldLabel": "Amount Received",
49                                     "name": "cashrcpt_amount",
50                                     "readOnly": true,
51                                     "width": 200,
52                                     "xtype": "NumberField",
53                                     "|xns": "Roo.form"
54                                 },
55                                 {
56                                     "allowBlank": false,
57                                     "disabled": true,
58                                     "displayField": "curr_name",
59                                     "editable": false,
60                                     "emptyText": "Select curr_name",
61                                     "fieldLabel": "Currency",
62                                     "forceSelection": true,
63                                     "hiddenName": "cashrcpt_curr_id",
64                                     "listWidth": 400,
65                                     "loadingText": "Searching...",
66                                     "minChars": 2,
67                                     "name": "cashrcpt_curr_id_curr_name",
68                                     "pageSize": 20,
69                                     "qtip": "Select Currency",
70                                     "queryParam": "query[curr_name]",
71                                     "selectOnFocus": true,
72                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{curr_name}</b> </div>",
73                                     "triggerAction": "all",
74                                     "typeAhead": true,
75                                     "valueField": "curr_id",
76                                     "width": 200,
77                                     "xtype": "ComboBox",
78                                     "|xns": "Roo.form",
79                                     "items": [
80                                         {
81                                             "listeners": {
82                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n   \n}\n"
83                                             },
84                                             "*prop": "store",
85                                             "remoteSort": true,
86                                             "xtype": "Store",
87                                             "|sortInfo": "{ direction : 'ASC', field: 'curr_symbol' }",
88                                             "|xns": "Roo.data",
89                                             "items": [
90                                                 {
91                                                     "*prop": "proxy",
92                                                     "xtype": "HttpProxy",
93                                                     "method": "GET",
94                                                     "|xns": "Roo.data",
95                                                     "|url": "baseURL + '/Roo/curr_symbol.php'"
96                                                 },
97                                                 {
98                                                     "*prop": "reader",
99                                                     "xtype": "JsonReader",
100                                                     "|xns": "Roo.data",
101                                                     "id": "curr_id",
102                                                     "root": "data",
103                                                     "totalProperty": "total",
104                                                     "|fields": "[{\"name\":\"curr_id\",\"type\":\"int\"},\"curr_symbol\"]"
105                                                 }
106                                             ]
107                                         }
108                                     ]
109                                 },
110                                 {
111                                     "allowBlank": false,
112                                     "displayField": "fname",
113                                     "editable": false,
114                                     "fieldLabel": "Funds Type",
115                                     "hiddenName": "cashrcpt_fundstype",
116                                     "listWidth": 200,
117                                     "mode": "local",
118                                     "name": "cashrcpt_fundstype_name",
119                                     "triggerAction": "all",
120                                     "valueField": "ftype",
121                                     "width": 200,
122                                     "xtype": "ComboBox",
123                                     "|xns": "Roo.form",
124                                     "items": [
125                                         {
126                                             "*prop": "store",
127                                             "xtype": "SimpleStore",
128                                             "|data": "[ \n    [ 'C', \"Check\"],\n    [ 'K' , \"Cash\"]\n]\n",
129                                             "|fields": "[  'ftype', 'fname']",
130                                             "|xns": "Roo.data"
131                                         }
132                                     ]
133                                 },
134                                 {
135                                     "allowBlank": true,
136                                     "fieldLabel": "Check / Document #",
137                                     "name": "cashrcpt_docnumber",
138                                     "width": 200,
139                                     "xtype": "TextField",
140                                     "|xns": "Roo.form"
141                                 },
142                                 {
143                                     "allowBlank": false,
144                                     "fieldLabel": "Check / Document Date",
145                                     "format": "Y-m-d",
146                                     "name": "cashrcpt_docdate",
147                                     "width": 200,
148                                     "xtype": "DateField",
149                                     "|xns": "Roo.form"
150                                 },
151                                 {
152                                     "allowBlank": false,
153                                     "fieldLabel": "Distribution Date",
154                                     "format": "Y-m-d",
155                                     "name": "cashrcpt_distdate",
156                                     "width": 200,
157                                     "xtype": "DateField",
158                                     "|xns": "Roo.form"
159                                 },
160                                 {
161                                     "allowBlank": false,
162                                     "fieldLabel": "Application Date",
163                                     "format": "Y-m-d",
164                                     "name": "cashrcpt_applydate",
165                                     "width": 200,
166                                     "xtype": "DateField",
167                                     "|xns": "Roo.form"
168                                 },
169                                 {
170                                     "allowBlank": false,
171                                     "displayField": "bankaccnt_name",
172                                     "editable": false,
173                                     "emptyText": "Select Bank Accnt",
174                                     "fieldLabel": "Post to",
175                                     "forceSelection": true,
176                                     "hiddenName": "cashrcpt_bankaccnt_id",
177                                     "listWidth": 400,
178                                     "loadingText": "Searching...",
179                                     "minChars": 2,
180                                     "name": "cashrcpt_bankaccnt_id_name",
181                                     "pageSize": 20,
182                                     "qtip": "Select Bank Accnt",
183                                     "queryParam": "query[bankaccnt_name]",
184                                     "selectOnFocus": true,
185                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{bankaccnt_name} - {bankaccnt_descrip}</b> </div>",
186                                     "triggerAction": "all",
187                                     "typeAhead": true,
188                                     "valueField": "bankaccnt_id",
189                                     "width": 200,
190                                     "xtype": "ComboBox",
191                                     "|xns": "Roo.form",
192                                     "items": [
193                                         {
194                                             "listeners": {
195                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n   \n}\n"
196                                             },
197                                             "*prop": "store",
198                                             "remoteSort": true,
199                                             "xtype": "Store",
200                                             "|sortInfo": "{ direction : 'DESC', field: 'bankaccnt_id' }",
201                                             "|xns": "Roo.data",
202                                             "items": [
203                                                 {
204                                                     "*prop": "proxy",
205                                                     "method": "GET",
206                                                     "xtype": "HttpProxy",
207                                                     "|url": "baseURL + '/Roo/bankaccnt.php'",
208                                                     "|xns": "Roo.data"
209                                                 },
210                                                 {
211                                                     "*prop": "reader",
212                                                     "id": "bankaccnt_id",
213                                                     "root": "data",
214                                                     "totalProperty": "total",
215                                                     "xtype": "JsonReader",
216                                                     "|fields": "[{\"name\":\"bankaccnt_id\",\"type\":\"int\"},\"bankaccnt_name\"]",
217                                                     "|xns": "Roo.data"
218                                                 }
219                                             ]
220                                         }
221                                     ]
222                                 },
223                                 {
224                                     "fieldLabel": "Notes",
225                                     "name": "cashrcpt_notes",
226                                     "xtype": "TextArea",
227                                     "|xns": "Roo.form"
228                                 },
229                                 {
230                                     "name": "cashrcpt_id",
231                                     "xtype": "Hidden",
232                                     "|xns": "Roo.form"
233                                 },
234                                 {
235                                     "name": "cashrcpt_aropen_id",
236                                     "xtype": "Hidden",
237                                     "|xns": "Roo.form"
238                                 },
239                                 {
240                                     "name": "cashrcpt_cust_id",
241                                     "xtype": "Hidden",
242                                     "|xns": "Roo.form"
243                                 },
244                                 {
245                                     "name": "cashrcpt_salescat_id",
246                                     "xtype": "Hidden",
247                                     "|xns": "Roo.form"
248                                 },
249                                 {
250                                     "name": "cashrcpt_discount",
251                                     "xtype": "Hidden",
252                                     "|xns": "Roo.form"
253                                 },
254                                 {
255                                     "name": "cashrcpt_usecustdeposit",
256                                     "xtype": "Hidden",
257                                     "|xns": "Roo.form"
258                                 }
259                             ]
260                         }
261                     ]
262                 },
263                 {
264                     "listeners": {
265                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
266                     },
267                     "*prop": "buttons[]",
268                     "text": "Cancel",
269                     "xtype": "Button",
270                     "|xns": "Roo"
271                 },
272                 {
273                     "listeners": {
274                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n  //  _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
275                     },
276                     "*prop": "buttons[]",
277                     "text": "Save",
278                     "xtype": "Button",
279                     "|xns": "Roo"
280                 }
281             ]
282         }
283     ],
284     "permname": "",
285     "modOrder": "001"
286 }