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 "name": "gltrans_rec",
125 "boxLabel": "Deleted",
126 "fieldLabel": "Deleted",
127 "name": "gltrans_deleted",
141 "fieldLabel": "Source",
142 "name": "gltrans_source",
144 "xtype": "TextField",
148 "fieldLabel": "Doc Type",
149 "name": "gltrans_doctype",
151 "xtype": "TextField",
155 "fieldLabel": "References",
156 "name": "gltrans_misc_id",
158 "xtype": "TextField",
164 "fieldLabel": "Doc No.",
165 "name": "gltrans_docnumber",
167 "xtype": "TextField",
176 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
179 "fitContainer": true,
182 "tableName": "gltrans",
184 "xtype": "GridPanel",
189 "|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}",
190 "|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"
193 "autoExpandColumn": "gltrans_accnt_id",
200 "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}"
202 "*prop": "dataSource",
205 "|sortInfo": "{ field : 'gltrans_source', direction: 'ASC' }",
210 "xtype": "HttpProxy",
212 "|url": "baseURL + '/Roo/gltrans.php'",
217 "xtype": "JsonReader",
218 "totalProperty": "total",
222 "|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]"
228 "xtype": "PagingToolbar",
231 "displayMsg": "Displaying gltrans{0} - {1} of {2}",
232 "emptyMsg": "No gltrans found",
243 "cls": "x-btn-text-icon",
244 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
246 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
248 "|xns": "Roo.Toolbar"
251 "|xns": "Roo.Toolbar",
256 "cls": "x-btn-text-icon",
257 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
260 "|click": "function()\n{\n Pman.genericDelete(_this, 'gltrans'); \n}\n "
262 "|xns": "Roo.Toolbar"
267 "*prop": "colModel[]",
268 "dataIndex": "gltrans_id",
271 "xtype": "ColumnModel",
272 "|renderer": "function(v) { return String.format('{0}', v); }",
276 "*prop": "colModel[]",
277 "dataIndex": "gltrans_accnt_id",
280 "xtype": "ColumnModel",
281 "|renderer": "function(v,x,r) {\n\n return String.format('{0}', r.data.gltrans_accnt_id_accnt_descrip); \n }",
285 "*prop": "colModel[]",
287 "dataIndex": "gltrans_amount",
288 "header": "Gltrans amount",
290 "xtype": "ColumnModel",
291 "|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}",
300 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
302 "*prop": "buttons[]",
309 "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}"
311 "*prop": "buttons[]",