Vijayakrishnan преди 2 години
родител
ревизия
e1e8865fa7
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      app/Models/CareMonth.php

+ 4 - 2
app/Models/CareMonth.php

@@ -300,12 +300,14 @@ class CareMonth extends Model
     public function rtmMskTransmissions() {
         return $this->hasMany(ClientRtmTransmission::class, 'care_month_id', 'id')
             ->where('msk_or_lung', 'MSK')
-            ->orderBy('effective_date', 'DESC');
+            ->orderBy('effective_date', 'DESC')
+            ->orderBy('created_at', 'DESC');
     }
 
     public function rtmLungTransmissions() {
         return $this->hasMany(ClientRtmTransmission::class, 'care_month_id', 'id')
             ->where('msk_or_lung', 'LUNG')
-            ->orderBy('effective_date', 'DESC');
+            ->orderBy('effective_date', 'DESC')
+            ->orderBy('created_at', 'DESC');
     }
 }