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 if (_this.data.gltrans_id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.gltrans_id }});\n return;\n }\n _this.grid.footer.onClick('first'); // clear..\n return;\n }\n if (action.type == 'load') {\n _this.grid.footer.onClick('first');\n return;\n }\n if (action.type =='submit') {\n \n \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",
105 "inputValue": "true",
117 "boxLabel": "Recorded in Bank Reconcile",
118 "fieldLabel": " ",
119 "inputValue": "true",
120 "name": "gltrans_rec",
126 "boxLabel": "Deleted",
127 "fieldLabel": "Deleted",
128 "inputValue": "true",
129 "name": "gltrans_deleted",
143 "fieldLabel": "Source",
144 "name": "gltrans_source",
146 "xtype": "TextField",
150 "fieldLabel": "Doc Type",
151 "name": "gltrans_doctype",
153 "xtype": "TextField",
157 "fieldLabel": "References",
158 "name": "gltrans_misc_id",
160 "xtype": "TextField",
171 "fieldLabel": "Doc No.",
172 "name": "gltrans_docnumber",
174 "xtype": "TextField",
183 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
186 "fitContainer": true,
189 "tableName": "gltrans",
191 "xtype": "GridPanel",
196 "|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}",
197 "|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"
200 "autoExpandColumn": "gltrans_accnt_id",
207 "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}"
209 "*prop": "dataSource",
212 "|sortInfo": "{ field : 'gltrans_source', direction: 'ASC' }",
217 "xtype": "HttpProxy",
219 "|url": "baseURL + '/Roo/gltrans.php'",
224 "xtype": "JsonReader",
225 "totalProperty": "total",
229 "|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]"
235 "xtype": "PagingToolbar",
238 "displayMsg": "Displaying gltrans{0} - {1} of {2}",
239 "emptyMsg": "No gltrans found",
250 "cls": "x-btn-text-icon",
251 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
253 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
255 "|xns": "Roo.Toolbar"
258 "|xns": "Roo.Toolbar",
263 "cls": "x-btn-text-icon",
264 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
267 "|click": "function()\n{\n Pman.genericDelete(_this, 'gltrans'); \n}\n "
269 "|xns": "Roo.Toolbar"
274 "*prop": "colModel[]",
275 "dataIndex": "gltrans_id",
278 "xtype": "ColumnModel",
279 "|renderer": "function(v) { return String.format('{0}', v); }",
283 "*prop": "colModel[]",
284 "dataIndex": "gltrans_accnt_id",
287 "xtype": "ColumnModel",
288 "|renderer": "function(v,x,r) {\n\n return String.format('{0}', r.data.gltrans_accnt_id_accnt_descrip); \n }",
292 "*prop": "colModel[]",
294 "dataIndex": "gltrans_amount",
295 "header": "Gltrans amount",
297 "xtype": "ColumnModel",
298 "|renderer": "function(v) { \n\n var vv = Roo.util.Format.number(v,2);\n if (v*1 < 0 ) {\n return '<span color=\"red\">' + vv + '</span>';\n }\n return vv; \n}",
307 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
309 "*prop": "buttons[]",
316 "click": "function (_self, e)\n{\n // do some checks?\n \n if (_this.data.gltrans_id) {\n return;\n }\n\n _this.form.doAction(\"submit\");\n\n}"
318 "*prop": "buttons[]",