Kaynağa Gözat

Transmissions order by

Vijayakrishnan 2 yıl önce
ebeveyn
işleme
e1e8865fa7
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  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');
     }
 }