Pman.Tab.XtupleArAging.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 5 Dec 2013 03:38:35 +0000 (11:38 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 5 Dec 2013 03:38:35 +0000 (11:38 +0800)
Pman.Tab.XtupleArAging.js

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

index 96f0f0c..6e86df1 100644 (file)
                                             "header": "30 Days",
                                             "width": 100,
                                             "xtype": "ColumnModel",
-                                            "|renderer": "function(v) { return String.format('{0}', v); }",
+                                            "|renderer": "function(v) { \n\n        return String.format(v*1 < 0 ? '<span style=\"color:red\">{0}</span>' : '{0}', \n            Roo.util.Format.usMoney(v)); \n    }",
                                             "|xns": "Roo.grid"
                                         },
                                         {
index ce64a46..8e03ed3 100644 (file)
@@ -409,7 +409,11 @@ Pman.Tab.XtupleArAging = new Roo.XComponent({
                                     dataIndex : 'araging_cur_val',
                                     header : '30 Days',
                                     width : 100,
-                                    renderer : function(v) { return String.format('{0}', v); }
+                                    renderer : function(v) { 
+                                    
+                                            return String.format(v*1 < 0 ? '<span style="color:red">{0}</span>' : '{0}', 
+                                                Roo.util.Format.usMoney(v)); 
+                                        }
                                 },
                                 {
                                     xtype: 'ColumnModel',