From 929d6a7f6e6edbd048279f83d253af544b98c734 Mon Sep 17 00:00:00 2001 From: fomichev Date: Tue, 21 Apr 2026 09:56:40 +0300 Subject: [PATCH] =?utf8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=83=D0=B4=D0=B0?= =?utf8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/Supplier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/records/Supplier.php b/erp24/records/Supplier.php index 69b447b8..71cfb424 100644 --- a/erp24/records/Supplier.php +++ b/erp24/records/Supplier.php @@ -167,7 +167,7 @@ class Supplier extends ActiveRecord ->execute(); $mappingsCount = (int)Yii::$app->db->createCommand() - ->update('{{%erp24.product_mappings}}', ['is_active' => false], ['supplier_id' => $this->id, 'is_active' => true]) + ->update('{{%erp24.product_mappings}}', ['deleted_at' => new Expression('NOW()')], ['supplier_id' => $this->id, 'deleted_at' => null]) ->execute(); $transaction->commit(); -- 2.39.5