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": "Created",
91 "name": "gltrans_created",
104 "boxLabel": "Posted",
105 "fieldLabel": "Status",
106 "inputValue": "true",
118 "boxLabel": "Recorded in Bank Reconcile",
119 "fieldLabel": " ",
120 "inputValue": "true",
121 "name": "gltrans_rec",
127 "boxLabel": "Deleted",
128 "fieldLabel": "Deleted",
129 "inputValue": "true",
130 "name": "gltrans_deleted",
144 "fieldLabel": "Source",
145 "name": "gltrans_source",
148 "xtype": "TextField",
152 "fieldLabel": "Doc Type",
153 "name": "gltrans_doctype",
156 "xtype": "TextField",
160 "fieldLabel": "References",
161 "name": "gltrans_misc_id",
164 "xtype": "TextField",
175 "fieldLabel": "Doc No.",
176 "name": "gltrans_docnumber",
178 "xtype": "TextField",
187 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
190 "fitContainer": true,
193 "tableName": "gltrans",
195 "xtype": "GridPanel",
200 "|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}",
201 "|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"
204 "autoExpandColumn": "gltrans_accnt_id",
211 "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}"
213 "*prop": "dataSource",
216 "|sortInfo": "{ field : 'gltrans_source', direction: 'ASC' }",
221 "xtype": "HttpProxy",
223 "|url": "baseURL + '/Roo/gltrans.php'",
228 "xtype": "JsonReader",
229 "totalProperty": "total",
233 "|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]"
239 "xtype": "PagingToolbar",
242 "displayMsg": "Displaying gltrans{0} - {1} of {2}",
243 "emptyMsg": "No gltrans found",
254 "cls": "x-btn-text-icon",
255 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
257 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
259 "|xns": "Roo.Toolbar"
262 "|xns": "Roo.Toolbar",
267 "cls": "x-btn-text-icon",
268 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
271 "|click": "function()\n{\n Pman.genericDelete(_this, 'gltrans'); \n}\n "
273 "|xns": "Roo.Toolbar"
278 "*prop": "colModel[]",
279 "dataIndex": "gltrans_id",
282 "xtype": "ColumnModel",
283 "|renderer": "function(v) { return String.format('{0}', v); }",
287 "*prop": "colModel[]",
288 "dataIndex": "gltrans_accnt_id",
291 "xtype": "ColumnModel",
292 "|renderer": "function(v,x,r) {\n\n return String.format('{0}', r.data.gltrans_accnt_id_accnt_descrip); \n }",
296 "*prop": "colModel[]",
298 "dataIndex": "gltrans_amount",
299 "header": "Gltrans amount",
301 "xtype": "ColumnModel",
302 "|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}",
311 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
313 "*prop": "buttons[]",
320 "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}"
322 "*prop": "buttons[]",