From: Alexander Smirnov Date: Mon, 2 Dec 2024 08:24:01 +0000 (+0300) Subject: [ERP-242] отсортировать передачи смен X-Git-Tag: 1.7~214^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=68d3f76131f46dd55469ceaf10cfe3df32af98ac;p=erp24_rep%2Fyii-erp24%2F.git [ERP-242] отсортировать передачи смен --- diff --git a/erp24/controllers/ShiftTransferController.php b/erp24/controllers/ShiftTransferController.php index ddf2a97d..618427ee 100644 --- a/erp24/controllers/ShiftTransferController.php +++ b/erp24/controllers/ShiftTransferController.php @@ -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');