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

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

index 381bd25..8ed28c7 100644 (file)
                                             "header": "Date",
                                             "width": 100,
                                             "xtype": "ColumnModel",
-                                            "|renderer": "function(v) { return String.format('{0}', v); }",
+                                            "|renderer": "function(v) { \n    var d = Date.parseDate(v, 'Y-m-d');\n\n    return String.format('{0}', v.format('d/M/Y')); \n}",
                                             "|xns": "Roo.grid"
                                         },
                                         {
index 39963cc..f37ce7f 100644 (file)
@@ -350,7 +350,11 @@ Pman.Tab.XtupleArAging = new Roo.XComponent({
                                     dataIndex : 'araging_docdate',
                                     header : 'Date',
                                     width : 100,
-                                    renderer : function(v) { return String.format('{0}', v); }
+                                    renderer : function(v) { 
+                                        var d = Date.parseDate(v, 'Y-m-d');
+                                    
+                                        return String.format('{0}', v.format('d/M/Y')); 
+                                    }
                                 },
                                 {
                                     xtype: 'ColumnModel',