Pman.Tab.XtupleArAging.js
"header": "Doc Type",
"width": 40,
"xtype": "ColumnModel",
- "|renderer": "function(v) { return String.format('{0}', v); }",
+ "|renderer": "function(v) {\n switch(v) {\n case 'I':\n return \"Invoice\";\n case 'C':\n return \"Credit Memo\"; \n case 'D':\n return \"Debit Memo\"; \n case 'R':\n return \"Cash Receipt\"; \n default:\n return String.format('{0}', v); \n }\n }",
"|xns": "Roo.grid"
},
{
dataIndex : 'araging_doctype',
header : 'Doc Type',
width : 40,
- renderer : function(v) { return String.format('{0}', v); }
+ renderer : function(v) {
+ switch(v) {
+ case 'I':
+ return "Invoice";
+ case 'C':
+ return "Credit Memo";
+ case 'D':
+ return "Debit Memo";
+ case 'R':
+ return "Cash Receipt";
+ default:
+ return String.format('{0}', v);
+ }
+ }
},
{
xtype: 'ColumnModel',