Explorar el Código

care-month matrix, dates and entries ordering

Vijayakrishnan hace 3 años
padre
commit
ad4729a313
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Models/Client.php

+ 1 - 1
app/Models/Client.php

@@ -709,7 +709,7 @@ WHERE m.care_month_id = :careMonthID
         AND (m.is_cellular_zero = FALSE or m.is_cellular_zero IS NULL)
         AND m.ts IS NOT NULL
         AND m.client_bdt_measurement_id IS NOT NULL
-ORDER BY m.effective_date
+ORDER BY m.ts DESC
             ",
             ['careMonthID' => $_careMonth->id]
         );