Andrew Wallo 6ヶ月前
コミット
a7ffcdb57d
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      app/Models/Accounting/Budget.php

+ 2
- 2
app/Models/Accounting/Budget.php ファイルの表示

@@ -84,9 +84,9 @@ class Budget extends Model
84 84
     public function getPeriods(): array
85 85
     {
86 86
         return $this->allocations()
87
-            ->select('period')
87
+            ->select(['period', 'start_date'])
88 88
             ->distinct()
89
-            ->orderBy('period')
89
+            ->orderBy('start_date')
90 90
             ->pluck('period')
91 91
             ->toArray();
92 92
     }

読み込み中…
キャンセル
保存