{ "name" : "Pman.Tab.XtupleArAging", "parent" : "Pman.Tab.XtupleAccountsTab", "title" : "", "path" : "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleArAging.bjs", "permname" : "", "modOrder" : "400", "items" : [ { "fitToFrame" : true, "background" : true, "region" : "center", "title" : "Accounts Recievable", "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" : "ArAging", "xtype" : "GridPanel", "fitContainer" : true, "$ xns" : "Roo", "tableName" : "aropen", "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" : [ { "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 : 'arAging',\n _name : 'bydate',\n 'relDate:text' : typeof(dt) == 'string' ? dt : dt.format('Y-m-d'),\n 'useDocDate:text' : false\n };\n \n var cs = _this.customerSel.getValue();\n if (cs*1) {\n params['cust_id:number'] = cs;\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': 'araging_apopen_id',\n 'type': 'int'\n },\n {\n 'name': 'araging_cust_id',\n 'type': 'int'\n }\n]", "$ xns" : "Roo.data", "* prop" : "reader", "totalProperty" : "total" } ] }, { "xtype" : "Toolbar", "$ xns" : "Roo", "* prop" : "toolbar", "items" : [ { "listeners" : { "render" : "function (_self)\n{\n _this.customerSel = _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" : "cust_name", "emptyText" : "Select customer", "hiddenName" : "cust_id", "minChars" : 2, "valueField" : "cust_id", "xtype" : "ComboBox", "allowBlank" : true, "typeAhead" : true, "editable" : true, "width" : 300, "$ xns" : "Roo.form", "name" : "cust_name", "qtip" : "Select Customer", "queryParam" : "cust_name:text", "tpl" : "