]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Сортировки документов и статус feature_fomichev_erp-2025-12-15_shift_transfer_remove_without_selfcost_ origin/feature_fomichev_erp-2025-12-15_shift_transfer_remove_without_selfcost_
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 17 Dec 2025 07:07:57 +0000 (10:07 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 17 Dec 2025 07:07:57 +0000 (10:07 +0300)
erp24/controllers/ReplacementInvoiceController.php
erp24/controllers/WaybillIncomingController.php
erp24/controllers/WaybillWriteOffsController.php
erp24/records/WriteOffsErp.php

index beea5132395e510651f571aeb190e0a56ca8d273..a130b861cdaa7c0e5fa8a1afb0e0b513efb8e2dd 100644 (file)
@@ -23,7 +23,7 @@ class ReplacementInvoiceController extends Controller
     {
         $dataProvider = new ActiveDataProvider([
             'query' => ReplacementInvoice::find()
-                ->orderBy('id desc'),
+                ->orderBy('created_at DESC'),
             'pagination' => [
                 'pageSize' => 20,
             ],
index 97d79e7a355ba852379c66306237473f51460570..147f0d9108ea2eb62c04e76c79d7fafff37aeb25 100644 (file)
@@ -11,7 +11,8 @@ class WaybillIncomingController extends Controller
 {
     public function actionIndex() {
         $dataProvider = new ActiveDataProvider([
-            'query' => WaybillIncoming::find(),
+            'query' => WaybillIncoming::find()
+                ->orderBy('created_at DESC'),
         ]);
         return $this->render('index', compact('dataProvider'));
     }
index 3693ba38f0bbcb2177ff8a8a231ff5ea9ef958e2..c6a755e35119d992b20bbee2ccb54959f5556cbc 100644 (file)
@@ -11,7 +11,8 @@ class WaybillWriteOffsController extends \yii\web\Controller
     public function actionIndex()
     {
         $dataProvider = new ActiveDataProvider([
-            'query' => WaybillWriteOffs::find(),
+            'query' => WaybillWriteOffs::find()
+                ->orderBy('created_at DESC'),
             'pagination' => [
                 'pageSize' => 20,
             ],
index 2ebdce425070c3ae25468f15896743060c2cf98c..e9f73daf66859d758e403622ca39281e007e3710 100644 (file)
@@ -132,7 +132,7 @@ class WriteOffsErp extends \yii\db\ActiveRecord
     const WRITE_OFFS_TYPE_RESORTING_DOES_NOT_COUNT_TOWARDS_COST = 'Пересорт, не идет в затраты';
 
     public const STATUSES = [
-        self::STATUS_CREATED => "Создан",
+        self::STATUS_CREATED => "Создан в ERP",
         self::STATUS_CONFIRM => "Одобрен",
         self::STATUS_SEND => "Отправлен в 1С",
         self::STATUS_CREATED_1C => "Создан в 1С",