Pman.Tab.XtupleArAging.bjs
authorEdward <edward@roojs.com>
Wed, 4 Dec 2013 09:40:34 +0000 (17:40 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Dec 2013 09:40:34 +0000 (17:40 +0800)
Pman.Tab.XtupleArAging.js

Pman.Tab.XtupleArAging.bjs
Pman.Tab.XtupleArAging.js

index 13a7789..6b6920c 100644 (file)
                                             "header": "Total",
                                             "width": 200,
                                             "xtype": "ColumnModel",
-                                            "|renderer": "function(v) { return String.format('{0}', v); }",
+                                            "|renderer": "function(v) {\n     return String.format('{0}', v ? Roo.util.Format.usMoney(v) : ''); \n }",
                                             "|xns": "Roo.grid"
                                         }
                                     ]
index 4dc1cfa..020721b 100644 (file)
@@ -300,7 +300,9 @@ Pman.Tab.XtupleArAging = new Roo.XComponent({
                                     dataIndex : 'araging_total_val',
                                     header : 'Total',
                                     width : 200,
-                                    renderer : function(v) { return String.format('{0}', v); }
+                                    renderer : function(v) {
+                                         return String.format('{0}', v ? Roo.util.Format.usMoney(v) : ''); 
+                                     }
                                 }
                             ]
                         }