]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
фикс удаления
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 21 Apr 2026 06:56:40 +0000 (09:56 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 21 Apr 2026 06:56:40 +0000 (09:56 +0300)
erp24/records/Supplier.php

index 69b447b8990d8fce26bffd134996c4b30ece31bb..71cfb424ee15b8b16a7d4c99b4fbf32f47d931c5 100644 (file)
@@ -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();