Pman.Tab.XtuplePurchaseRecv.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 5 Dec 2013 06:38:16 +0000 (14:38 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 5 Dec 2013 06:38:16 +0000 (14:38 +0800)
Pman.Tab.XtuplePurchaseRecv.js

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

index 053de11..5bc93a9 100644 (file)
                                             "header": "Vouchered",
                                             "width": 75,
                                             "xtype": "ColumnModel",
-                                            "|renderer": "function(v,x,r) { \n\n    Roo.log(v*1);\n    var f =  '<span style=\"{0}\">{1}</span>';\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 =  '<span style=\"{0}\">{1}</span>';\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 f10fc19..d472f22 100644 (file)
@@ -1909,7 +1909,7 @@ Pman.Tab.XtuplePurchaseRecv = new Roo.XComponent({
                                             style = 'color:red;font-weight:bold';
                                         }
                                         
-                                        if(Math.round(v*100) != Math.round(r.data.pohead_val*100)){
+                                        if(Math.round(v*100) < Math.round(r.data.pohead_val*100)){
                                             f = '<span style="{0}">{1}</span>' + '<img class="x-grid-check-icon" src="' + Roo.BLANK_IMAGE_URL + '"/>'
                                         }