From: marina Date: Fri, 27 Dec 2024 12:44:14 +0000 (+0300) Subject: ERP-275 Добавление колонки для сохранения type в товаре из каталога X-Git-Tag: 1.7~100^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=db321d00589bf7dc04677dfb14098afe8df7fef4;p=erp24_rep%2Fyii-erp24%2F.git ERP-275 Добавление колонки для сохранения type в товаре из каталога --- diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index f9425c9c..6d546665 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -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"]; diff --git a/erp24/records/Products1c.php b/erp24/records/Products1c.php index 4a723841..b72a9f23 100644 --- a/erp24/records/Products1c.php +++ b/erp24/records/Products1c.php @@ -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} */