2 "name" : "Pman.Tab.XtupleTerms",
3 "parent" : "Pman.Tab.XtupleAccountsTab",
5 "path" : "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleTerms.bjs",
13 "xtype" : "NestedLayoutPanel",
17 "xtype" : "BorderLayout",
22 "xtype" : "LayoutRegion",
28 "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
34 "xtype" : "GridPanel",
35 "fitContainer" : true,
37 "tableName" : "terms",
41 "|render" : "function() \n{\n _this.grid = this; \n \n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
43 "autoExpandColumn" : "terms_descrip",
56 "specialkey" : "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}",
57 "render" : "function (_self)\n{\n _this.searchBox = _self;\n}"
59 "xtype" : "TextField",
64 "click" : "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}"
68 "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
69 "$ xns" : "Roo.Toolbar"
73 "click" : "function (_self, e)\n{\n _this.searchBox.setValue('');\r\n\r\n _this.grid.footer.onClick('first');\r\n}"
77 "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
78 "$ xns" : "Roo.Toolbar"
84 "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n var s = _this.searchBox.getValue();\n \n if(s.length){\n o.params['search[name]'] = s;\n }\n \n \n}"
88 "$ sortInfo" : "{ field : 'crdate', direction: 'ASC' }",
90 "* prop" : "dataSource",
93 "$ url" : "baseURL + '/Roo/terms.php'",
94 "xtype" : "HttpProxy",
102 "xtype" : "JsonReader",
103 "$ xns" : "Roo.data",
104 "$ fields" : "[\n {\n 'name': 'terms_id',\n 'type': 'int'\n },\n {\n 'name': 'terms_code',\n 'type': 'string'\n },\n {\n 'name': 'terms_descrip',\n 'type': 'string',\n }\n]",
106 "totalProperty" : "total"
112 "xtype" : "PagingToolbar",
113 "emptyMsg" : "No terms found",
115 "displayInfo" : true,
116 "displayMsg" : "Displaying Terms{0} - {1} of {2}",
120 "xtype" : "ColumnModel",
123 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
124 "$ xns" : "Roo.grid",
125 "Boolean sortable" : true,
127 "dataIndex" : "terms_id"
130 "xtype" : "ColumnModel",
133 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
134 "$ xns" : "Roo.grid",
135 "Boolean sortable" : true,
137 "dataIndex" : "terms_code"
140 "xtype" : "ColumnModel",
141 "header" : "Description",
143 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
144 "$ xns" : "Roo.grid",
145 "Boolean sortable" : true,
147 "dataIndex" : "terms_descrip"
150 "xtype" : "ColumnModel",
153 "$ renderer" : "function(v) { \n var t = (v == 'D') ? 'Days' : 'Proximo';\n \n return String.format('{0}', t); \n}",
154 "$ xns" : "Roo.grid",
155 "Boolean sortable" : true,
157 "dataIndex" : "term_type"
160 "xtype" : "ColumnModel",
162 "header" : "Due Days",
163 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
164 "$ xns" : "Roo.grid",
165 "Boolean sortable" : true,
167 "dataIndex" : "terms_duedays"
170 "xtype" : "ColumnModel",
172 "header" : "Discount Days",
173 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
174 "$ xns" : "Roo.grid",
175 "Boolean sortable" : true,
177 "dataIndex" : "terms_discdays"
180 "xtype" : "ColumnModel",
181 "header" : "Discount Days",
183 "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
184 "$ xns" : "Roo.grid",
185 "Boolean sortable" : true,
187 "dataIndex" : "terms_cutoffday"