Explorar el Código

FIX ADD Informes Dental

Sebas hace 6 años
padre
commit
7f6b687433
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  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);
         },