Pman.Dialog.XtupleJournalEntry.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 09:44:10 +0000 (17:44 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 09:44:10 +0000 (17:44 +0800)
Pman.Dialog.XtupleJournalEntry.js

Pman.Dialog.XtupleJournalEntry.bjs
Pman.Dialog.XtupleJournalEntry.js

index aebdbab..b142e4a 100644 (file)
                                     "header": "Gltrans amount",
                                     "width": 100,
                                     "xtype": "ColumnModel",
-                                    "|renderer": "function(v) { \n\n    var vv = Roo.util.Format.number(v,2);\n    if (v < 0 ) {\n        return '<span color=\"red\">' + vv + '</span>';\n    }\n    return vv; \n}",
+                                    "|renderer": "function(v) { \n\n    var vv = Roo.util.Format.number(v,2);\n    if (v*1 < 0 ) {\n        return '<span color=\"red\">' + vv + '</span>';\n    }\n    return vv; \n}",
                                     "|xns": "Roo.grid"
                                 }
                             ]
index ffbc748..3f5f5e9 100644 (file)
@@ -427,7 +427,7 @@ Pman.Dialog.XtupleJournalEntry = {
                                 renderer : function(v) { 
                                 
                                     var vv = Roo.util.Format.number(v,2);
-                                    if (v < 0 ) {
+                                    if (v*1 < 0 ) {
                                         return '<span color="red">' + vv + '</span>';
                                     }
                                     return vv;