3 "name": "Pman.Tab.XtupleArAging",
4 "parent": "Pman.Tab.XtupleAccountsTab",
6 "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleArAging.bjs",
13 "title": "Accounts Recievable",
14 "xtype": "NestedLayoutPanel",
19 "xtype": "BorderLayout",
24 "xtype": "LayoutRegion",
29 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
35 "tableName": "aropen",
42 "|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}"
45 "autoExpandColumn": "araging_docnumber",
52 "beforeload": "function (_self, o)\n{\n o.params = o.params || {};\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 Roo.apply(o.params,params);\n}"
54 "*prop": "dataSource",
64 "|url": "baseURL + '/Roo/Metasql.php'",
71 "totalProperty": "total",
72 "xtype": "JsonReader",
73 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'name',\n 'type': 'string'\n },\n {\n 'name': 'type',\n 'type': 'int'\n },\n {\n 'name': 'leader',\n 'type': 'int'\n },\n {\n 'name': 'leader_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_office_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_name',\n 'type': 'string'\n },\n {\n 'name': 'leader_phone',\n 'type': 'string'\n },\n {\n 'name': 'leader_fax',\n 'type': 'string'\n },\n {\n 'name': 'leader_email',\n 'type': 'string'\n },\n {\n 'name': 'leader_company_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_role',\n 'type': 'string'\n },\n {\n 'name': 'leader_active',\n 'type': 'int'\n },\n {\n 'name': 'leader_remarks',\n 'type': 'string'\n },\n {\n 'name': 'leader_passwd',\n 'type': 'string'\n },\n {\n 'name': 'leader_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_lang',\n 'type': 'string'\n },\n {\n 'name': 'leader_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'leader_action_type',\n 'type': 'string'\n },\n {\n 'name': 'leader_project_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'leader_deleted_dt',\n 'type': 'date'\n },\n {\n 'name': 'leader_firstname',\n 'type': 'string'\n },\n {\n 'name': 'leader_lastname',\n 'type': 'string'\n },\n {\n 'name': 'leader_name_facebook',\n 'type': 'string'\n },\n {\n 'name': 'leader_url_blog',\n 'type': 'string'\n },\n {\n 'name': 'leader_url_twitter',\n 'type': 'string'\n },\n {\n 'name': 'leader_url_linkedin',\n 'type': 'string'\n },\n {\n 'name': 'leader_crm_lead_percentage',\n 'type': 'int'\n },\n {\n 'name': 'leader_crm_industry_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_crm_updated_action_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_crm_created_action_id',\n 'type': 'int'\n },\n {\n 'name': 'leader_crm_type_id',\n 'type': 'int'\n }\n]",
85 "displayField": "cust_name",
87 "emptyText": "Select customer",
88 "fieldLabel": "cust_name",
89 "forceSelection": true,
90 "hiddenName": "cust_id",
92 "loadingText": "Searching...",
96 "qtip": "Select Customer",
97 "queryParam": "query[cust_name]",
98 "selectOnFocus": true,
99 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{cust_name}</b> </div>",
100 "triggerAction": "all",
102 "valueField": "cust_id",
109 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.params['_group'] = 'arAging';\n o.params['_name'] = 'customers';\n \n}\n"
114 "|sortInfo": "{ direction : 'ASC', field: 'cust_name' }",
120 "xtype": "HttpProxy",
121 "|url": "baseURL + '/Roo/metasql.php'",
126 "xtype": "JsonReader",
130 "totalProperty": "total",
131 "|fields": "[{\"name\":\"cust_id\",\"type\":\"int\"},\"cust_name\"]"
140 "|xns": "Roo.Toolbar"
144 "render": "function (_self)\r\n{\r\n _this.relDate = _self;\r\n _self.setValue( new Date() );\r\n}",
145 "select": "function (combo, date)\n{\n _this.grid.footer.onClick('first');\n}"
150 "xtype": "DateField",
158 "displayMsg": "Displaying araging{0} - {1} of {2}",
159 "emptyMsg": "Nothing found",
161 "xtype": "PagingToolbar",
165 "*prop": "colModel[]",
166 "dataIndex": "araging_docdate",
169 "xtype": "ColumnModel",
170 "|renderer": "function(v) { return String.format('{0}', v); }",
174 "*prop": "colModel[]",
175 "dataIndex": "araging_cust_name",
176 "header": "Customer",
178 "xtype": "ColumnModel",
179 "|renderer": "function(v) { return String.format('{0}', v); }",
183 "*prop": "colModel[]",
184 "dataIndex": "araging_doctype",
185 "header": "Doc Type",
187 "xtype": "ColumnModel",
188 "|renderer": "function(v) { return String.format('{0}', v); }",
192 "*prop": "colModel[]",
193 "dataIndex": "araging_docnumber",
194 "header": "Docnumber",
196 "xtype": "ColumnModel",
197 "|renderer": "function(v) { return String.format('{0}', v); }",
201 "*prop": "colModel[]",
202 "dataIndex": "araging_ponumber_pretty",
205 "xtype": "ColumnModel",
206 "|renderer": "function(v) { return String.format('{0}', v); }",
210 "*prop": "colModel[]",
212 "dataIndex": "araging_total_val",
215 "xtype": "ColumnModel",
216 "|renderer": "function(v) { return String.format('{0}', v); }",