Andrew Wallo 9 месяцев назад
Родитель
Сommit
a7ffcdb57d
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      app/Models/Accounting/Budget.php

+ 2
- 2
app/Models/Accounting/Budget.php Просмотреть файл

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

Загрузка…
Отмена
Сохранить