소스 검색

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);
         },