Pman.Tab.XtupleCurrency.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 10:59:53 +0000 (18:59 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 10:59:53 +0000 (18:59 +0800)
Pman.Tab.XtupleCurrency.js

Pman.Tab.XtupleCurrency.bjs
Pman.Tab.XtupleCurrency.js

index 6544e46..df7596d 100644 (file)
                                             "header": "Rate",
                                             "width": 75,
                                             "xtype": "ColumnModel",
-                                            "|renderer": "function(v) { return String.format('{0}', v); }",
+                                            "|renderer": "function(v) {    \n     return String.format('{2}1 = {1}{0}', \n        Roo.util.Format.number(1.0/v,2),\n        r.data.base_curr_symbol,\n        r.data.curr_id_curr_symbol\n    ); \n}",
                                             "|xns": "Roo.grid"
                                         }
                                     ]
index e06ffbe..792ab9b 100644 (file)
@@ -370,7 +370,13 @@ Pman.Tab.XtupleCurrency = new Roo.XComponent({
                                     dataIndex : 'curr_rate',
                                     header : 'Rate',
                                     width : 75,
-                                    renderer : function(v) { return String.format('{0}', v); }
+                                    renderer : function(v) {    
+                                         return String.format('{2}1 = {1}{0}', 
+                                            Roo.util.Format.number(1.0/v,2),
+                                            r.data.base_curr_symbol,
+                                            r.data.curr_id_curr_symbol
+                                        ); 
+                                    }
                                 }
                             ]
                         }