3 "name": "Pman.Dialog.XtupleJournalEntry",
6 "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleJournalEntry.bjs",
14 "title": "Create / View Transaction",
16 "xtype": "LayoutDialog",
22 "xtype": "LayoutRegion",
27 "xtype": "LayoutRegion",
32 "xtype": "ContentPanel",
37 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n return;\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",
38 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
40 "labelAlign": "right",
42 "style": "margin:10px;",
44 "|url": "baseURL + '/Roo/gltrans.php'",
48 "labelAlign": "right",
53 "fieldLabel": "Sequence",
54 "name": "gltrans_sequence",
60 "fieldLabel": "Journal No.",
61 "name": "gltrans_journalnumber",
67 "fieldLabel": "Created By",
68 "name": "gltrans_username",
76 "labelAlign": "right",
83 "name": "gltrans_date",
90 "fieldLabel": "Entered",
91 "name": "gltrans_entered",
103 "boxLabel": "Posted",
104 "fieldLabel": "Status",
116 "boxLabel": "Recorded in Bank Reconcile",
117 "fieldLabel": " ",
118 "name": "gltrans_rec",
124 "boxLabel": "Deleted",
125 "fieldLabel": "Deleted",
126 "name": "gltrans_deleted",
140 "fieldLabel": "Source",
141 "name": "gltrans_source",
143 "xtype": "TextField",
147 "fieldLabel": "Doc Type",
148 "name": "gltrans_doctype",
150 "xtype": "TextField",
154 "fieldLabel": "References",
155 "name": "gltrans_misc_id",
157 "xtype": "TextField",
163 "fieldLabel": "Doc No.",
164 "name": "gltrans_docnumber",
166 "xtype": "TextField",
175 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
178 "fitContainer": true,
181 "tableName": "gltrans",
183 "xtype": "GridPanel",
188 "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
189 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
192 "autoExpandColumn": "gltrans_source",
199 "beforeload": "function (_self, options)\n{\n this.removeAll();\n if (!_this.form.findField('gltrans_sequence').getValue()) {\n return false;\n }\n options.params.gltrans_sequence = _this.form.findField('gltrans_sequence').getValue();\n}"
201 "*prop": "dataSource",
204 "|sortInfo": "{ field : 'gltrans_source', direction: 'ASC' }",
209 "xtype": "HttpProxy",
211 "|url": "baseURL + '/Roo/gltrans.php'",
216 "xtype": "JsonReader",
217 "totalProperty": "total",
221 "|fields": "[\n {\n 'name': 'gltrans_id',\n 'type': 'int'\n },\n {\n 'name': 'gltrans_exported',\n 'type': 'int'\n },\n {\n 'name': 'gltrans_created',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'gltrans_date',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'gltrans_sequence',\n 'type': 'int'\n },\n {\n 'name': 'gltrans_accnt_id',\n 'type': 'int'\n },\n {\n 'name': 'gltrans_source',\n 'type': 'string'\n },\n {\n 'name': 'gltrans_docnumber',\n 'type': 'string'\n },\n {\n 'name': 'gltrans_misc_id',\n 'type': 'int'\n },\n {\n 'name': 'gltrans_amount',\n 'type': 'float'\n },\n {\n 'name': 'gltrans_notes',\n 'type': 'string'\n },\n {\n 'name': 'gltrans_journalnumber',\n 'type': 'int'\n },\n {\n 'name': 'gltrans_posted',\n 'type': 'int'\n },\n {\n 'name': 'gltrans_doctype',\n 'type': 'string'\n },\n {\n 'name': 'gltrans_rec',\n 'type': 'int'\n },\n {\n 'name': 'gltrans_username',\n 'type': 'string'\n },\n {\n 'name': 'gltrans_deleted',\n 'type': 'int'\n }\n]"
227 "xtype": "PagingToolbar",
230 "displayMsg": "Displaying gltrans{0} - {1} of {2}",
231 "emptyMsg": "No gltrans found",
242 "cls": "x-btn-text-icon",
243 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
245 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
247 "|xns": "Roo.Toolbar"
250 "|xns": "Roo.Toolbar",
255 "cls": "x-btn-text-icon",
256 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
259 "|click": "function()\n{\n Pman.genericDelete(_this, 'gltrans'); \n}\n "
261 "|xns": "Roo.Toolbar"
266 "*prop": "colModel[]",
270 "xtype": "ColumnModel",
271 "|renderer": "function(v) { return String.format('{0}', v); }",
275 "*prop": "colModel[]",
276 "dataIndex": "gltrans_sequence",
277 "header": "Gltrans sequence",
279 "xtype": "ColumnModel",
280 "|renderer": "function(v,x,r) {\n\n return String.format('{0}', r.data.gltrans_accnt_id_accnt_descript); \n }",
284 "xtype": "ColumnModel",
285 "header": "Gltrans misc",
287 "dataIndex": "gltrans_misc_id",
288 "|renderer": "function(v) { return String.format('{0}', v); }",
290 "*prop": "colModel[]"
293 "xtype": "ColumnModel",
294 "header": "Gltrans amount",
296 "dataIndex": "gltrans_amount",
297 "|renderer": "function(v) { return String.format('{0}', v); }",
299 "*prop": "colModel[]"
302 "xtype": "ColumnModel",
303 "header": "Gltrans notes",
305 "dataIndex": "gltrans_notes",
306 "|renderer": "function(v) { return String.format('{0}', v); }",
308 "*prop": "colModel[]"
311 "xtype": "ColumnModel",
312 "header": "Gltrans journalnumber",
314 "dataIndex": "gltrans_journalnumber",
315 "|renderer": "function(v) { return String.format('{0}', v); }",
317 "*prop": "colModel[]"
320 "xtype": "ColumnModel",
321 "header": "Gltrans posted",
323 "dataIndex": "gltrans_posted",
324 "|renderer": "function(v) { return String.format('{0}', v); }",
326 "*prop": "colModel[]"
329 "xtype": "ColumnModel",
330 "header": "Gltrans doctype",
332 "dataIndex": "gltrans_doctype",
333 "|renderer": "function(v) { return String.format('{0}', v); }",
335 "*prop": "colModel[]"
338 "xtype": "ColumnModel",
339 "header": "Gltrans rec",
341 "dataIndex": "gltrans_rec",
342 "|renderer": "function(v) { return String.format('{0}', v); }",
344 "*prop": "colModel[]"
347 "xtype": "ColumnModel",
348 "header": "Gltrans username",
350 "dataIndex": "gltrans_username",
351 "|renderer": "function(v) { return String.format('{0}', v); }",
353 "*prop": "colModel[]"
356 "xtype": "ColumnModel",
357 "header": "Gltrans deleted",
359 "dataIndex": "gltrans_deleted",
360 "|renderer": "function(v) { return String.format('{0}', v); }",
362 "*prop": "colModel[]"
370 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
372 "*prop": "buttons[]",
379 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
381 "*prop": "buttons[]",