]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-275 Добавление колонки для сохранения type в товаре из каталога
authormarina <m.zozirova@gmail.com>
Fri, 27 Dec 2024 12:44:14 +0000 (15:44 +0300)
committermarina <m.zozirova@gmail.com>
Fri, 27 Dec 2024 12:44:14 +0000 (15:44 +0300)
erp24/api2/controllers/DataController.php
erp24/records/Products1c.php

index f9425c9c6ed82fcded1f55031871381fb37aefc7..6d54666536b1b80be1a1f9841412c0583fac18fd 100644 (file)
@@ -873,6 +873,7 @@ class DataController extends BaseController
                     }
                     $products1c6->name = $arr["name"];
                     $products1c6->code = $arr["code"];
+                    $products1c6->type = $arr["type"];
                     $products1c6->articule = $arr["articule"];
                     $products1c6->parent_id = $arr["parent_id"];
                     $products1c6->view = $arr["view"];
index 4a723841d46444d029a3af052a24114f5303c1c3..b72a9f232efc26d4d790bfbbedef99b0f2c77238 100644 (file)
@@ -16,11 +16,13 @@ use yii\helpers\ArrayHelper;
  * @property string $articule
  * @property int $view
  * @property string $components
+ * @property string|null $type
  */
 class Products1c extends \yii\db\ActiveRecord
 {
 
     const PRODUCT1C_FIELDS = ['id', 'parent_id', 'tip', 'code', 'name', 'articule', 'view', 'components', 'AdditionCharacteristics'];
+
     /**
      * {@inheritdoc}
      */