浏览代码

FIX ADD Informes Dental

Sebas 6 年之前
父节点
当前提交
7f6b687433
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      static/src/js/reports/report_invoice_balance.js

+ 9 - 0
static/src/js/reports/report_invoice_balance.js

@@ -320,6 +320,15 @@ function report_invoice_balance (reporting){
                     });
                 }
             });
+            data.sort(function (a, b) {
+                 if (a.date > b.date) {
+                     return -1;
+                 }
+                 if (a.date < b.date) {
+                     return 1;
+                 }
+                 return 0;
+             });
             self.content = data;
             this.loadTable(data);
         },