{ "name" : "Pman.Tab.XtupleApAging", "parent" : "Pman.Tab.XtupleAccountsTab", "title" : "", "path" : "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleApAging.bjs", "permname" : "", "modOrder" : "500", "items" : [ { "fitToFrame" : true, "background" : true, "region" : "center", "title" : "Accounts Payable", "xtype" : "NestedLayoutPanel", "fitContainer" : true, "$ xns" : "Roo", "items" : [ { "xtype" : "BorderLayout", "$ xns" : "Roo", "* prop" : "layout", "items" : [ { "xtype" : "LayoutRegion", "$ xns" : "Roo", "* prop" : "center" }, { "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, "fitToframe" : true, "background" : true, "region" : "center", "title" : "ApAging", "xtype" : "GridPanel", "fitContainer" : true, "$ xns" : "Roo", "tableName" : "apopen", "items" : [ { "listeners" : { "|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}" }, "autoExpandColumn" : "araging_cust_name", "xtype" : "Grid", "loadMask" : true, "$ xns" : "Roo.grid", "* prop" : "grid", "items" : [ { "xtype" : "RowSelectionModel", "singleSelect" : true, "$ xns" : "Roo.grid", "* prop" : "sm" }, { "listeners" : { "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n\n \n var dt = _this.relDate.getValue();\n \n var params = {\n _group : 'apAging',\n _name : 'bydate',\n 'relDate:text' : typeof(dt) == 'string' ? dt : dt.format('Y-m-d'),\n 'useDocDate:text' : false\n };\n \n var vend = _this.vendSel.getValue();\n if (vend*1) {\n params['vend_id:number'] = vend;\n \n }\n \n \n Roo.apply(o.params,params);\n}" }, "xtype" : "Store", "remoteSort" : true, "$ xns" : "Roo.data", "* prop" : "dataSource", "items" : [ { "$ url" : "baseURL + '/Roo/Metasql.php'", "method" : "GET", "xtype" : "HttpProxy", "timeout" : 600000, "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ fields" : "[\n {\n 'name': 'apaging_doctype',\n 'type': 'string'\n }\n]", "$ xns" : "Roo.data", "* prop" : "reader", "totalProperty" : "total" } ] }, { "xtype" : "Toolbar", "$ xns" : "Roo", "* prop" : "toolbar", "items" : [ { "listeners" : { "render" : "function (_self)\n{\n _this.vendSel = _self;\n}", "select" : "function (combo, record, index)\n{\n _this.grid.footer.onClick('first');\n}" }, "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "cust_name", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "vend_name", "emptyText" : "Select Vendor", "hiddenName" : "vend_id", "minChars" : 2, "valueField" : "vend_id", "xtype" : "ComboBox", "allowBlank" : true, "typeAhead" : true, "editable" : true, "width" : 300, "$ xns" : "Roo.form", "name" : "vend_name", "qtip" : "Select Vendor", "queryParam" : "vend_name:text", "tpl" : "