]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-242] отсортировать передачи смен
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 2 Dec 2024 08:24:01 +0000 (11:24 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 2 Dec 2024 08:24:01 +0000 (11:24 +0300)
erp24/controllers/ShiftTransferController.php

index ddf2a97dc4f05a1a13c41875645ea456a4e375f2..618427ee4b908efa53b6aceb60603920f277de9c 100644 (file)
@@ -21,7 +21,7 @@ use yii_app\services\TaskService;
 class ShiftTransferController extends Controller
 {
     public function actionIndex() {
-        $shiftTransfers = ShiftTransfer::find()->all();
+        $shiftTransfers = ShiftTransfer::find()->orderBy(['date' => SORT_DESC])->all();
 
         $storeNameById = TaskService::getEntitiesByAlias('store');