Pman.Tab.XtuplePurchaseRecv.bjs
authorEdward <edward@roojs.com>
Wed, 4 Dec 2013 07:41:22 +0000 (15:41 +0800)
committerEdward <edward@roojs.com>
Wed, 4 Dec 2013 07:41:22 +0000 (15:41 +0800)
Pman.Tab.XtuplePurchaseRecv.js

Pman.Tab.XtuplePurchaseRecv.bjs
Pman.Tab.XtuplePurchaseRecv.js

index c29b3dc..87a9a05 100644 (file)
                                             "header": "Vouchered",
                                             "width": 75,
                                             "xtype": "ColumnModel",
-                                            "|renderer": "function(v,x,r) { \n\n    Roo.log(v);\n    var f =  '';\n    \n    var style = '';\n    \n    if(Math.round(v*100) != Math.round(r.data.pohead_paid*100)){\n        style = 'color:red;font-weight:bold';\n    }\n    \n    if(Math.round(v*100) != Math.round(r.data.pohead_val*100)){\n        f = '<span style=\"{0}\">{1}</span>' + '<img class=\"x-grid-check-icon\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>'\n    }\n    \n    return String.format(f,  style, v * 1 ? Roo.util.Format.usMoney(v) : '' ); \n }",
+                                            "|renderer": "function(v,x,r) { \n\n    Roo.log(v) * 1;\n    var f =  '';\n    \n    var style = '';\n    \n    if(Math.round(v*100) != Math.round(r.data.pohead_paid*100)){\n        style = 'color:red;font-weight:bold';\n    }\n    \n    if(Math.round(v*100) != Math.round(r.data.pohead_val*100)){\n        f = '<span style=\"{0}\">{1}</span>' + '<img class=\"x-grid-check-icon\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>'\n    }\n    \n    return String.format(f,  style, v * 1 ? Roo.util.Format.usMoney(v) : '' ); \n }",
                                             "|xns": "Roo.grid"
                                         },
                                         {
index 7abfa57..ffeeb3b 100644 (file)
@@ -1917,7 +1917,7 @@ Pman.Tab.XtuplePurchaseRecv = new Roo.XComponent({
                                     width : 75,
                                     renderer : function(v,x,r) { 
                                     
-                                        Roo.log(v);
+                                        Roo.log(v) * 1;
                                         var f =  '';
                                         
                                         var style = '';