Pman.Tab.XtupleArAging.bjs
authorEdward <edward@roojs.com>
Fri, 6 Dec 2013 06:27:01 +0000 (14:27 +0800)
committerEdward <edward@roojs.com>
Fri, 6 Dec 2013 06:27:01 +0000 (14:27 +0800)
Pman.Tab.XtupleArAging.js

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

index f0ffc83..faa057c 100644 (file)
                                             "|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"
                                         },
+                                        {
+                                            "*prop": "colModel[]",
+                                            "align": "right",
+                                            "dataIndex": "araging_total_val",
+                                            "header": "Total",
+                                            "width": 150,
+                                            "xtype": "ColumnModel",
+                                            "|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"
+                                        },
                                         {
                                             "*prop": "colModel[]",
                                             "align": "right",
index c14dbb0..e2cbd80 100644 (file)
@@ -470,6 +470,19 @@ Pman.Tab.XtupleArAging = new Roo.XComponent({
                                                 Roo.util.Format.usMoney(v)); 
                                         }
                                 },
+                                {
+                                    xtype: 'ColumnModel',
+                                    xns: Roo.grid,
+                                    align : 'right',
+                                    dataIndex : 'araging_total_val',
+                                    header : 'Total',
+                                    width : 150,
+                                    renderer : function(v) { 
+                                    
+                                            return String.format(v*1 < 0 ? '<span style="color:red">{0}</span>' : '{0}', 
+                                                Roo.util.Format.usMoney(v)); 
+                                        }
+                                },
                                 {
                                     xtype: 'ColumnModel',
                                     xns: Roo.grid,