From: fomichev Date: Tue, 21 Apr 2026 06:56:40 +0000 (+0300) Subject: фикс удаления X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=929d6a7f6e6edbd048279f83d253af544b98c734;p=erp24_rep%2Fyii-erp24%2F.git фикс удаления --- 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();