From: marina Date: Mon, 5 May 2025 07:11:30 +0000 (+0300) Subject: ERP-402 Добавить в ЛК Флориста расчёт премии за авторские букеты X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d1755496182185348fba8af769d4b53fef0873b9;p=erp24_rep%2Fyii-erp24%2F.git ERP-402 Добавить в ЛК Флориста расчёт премии за авторские букеты --- diff --git a/erp24/modul/products/products_1c.php b/erp24/modul/products/products_1c.php index e86d7379..aa2f3043 100644 --- a/erp24/modul/products/products_1c.php +++ b/erp24/modul/products/products_1c.php @@ -23,7 +23,7 @@ function build_tree($cats,$parent_id,$only_parent = false){ global $ahref,$group_tpl, $products_class_row; $products_class=["wrap"=>"Упаковка","potted"=>"Горшечка", "services"=>"Услуги", "services_delivery"=>"Услуги по доставке", "salut"=>"Пиротехника", "matrix"=>"Матрица", "marketplace" => "Товары для маркетплейсов", "marketplace_additional" => "Доп. товары для маркетплейсов", - "related"=>"Сопутка", "other_items"=>"Номенклатура 1%"]; + "related"=>"Сопутка", "other_items"=>"Номенклатура 1%", "author"=>"Авторский букет",]; // if(is_array($cats) and isset($cats[$parent_id])){ diff --git a/erp24/records/ProductsClass.php b/erp24/records/ProductsClass.php index 939f040c..477efdf6 100755 --- a/erp24/records/ProductsClass.php +++ b/erp24/records/ProductsClass.php @@ -38,6 +38,7 @@ class ProductsClass extends \yii\db\ActiveRecord self::HINT_MARKETPLACE_ADDITIONAL => 'Доп. товары для маркетплейсов', self::HINT_RELATED => 'Сопутка', self::HINT_OTHER_ITEMS => 'Номенклатура 1%', + self::HINT_AUTHOR => 'Авторский букет', ]; } diff --git a/erp24/views/shift-transfer/update.php b/erp24/views/shift-transfer/update.php index 395ae244..f26fcf49 100644 --- a/erp24/views/shift-transfer/update.php +++ b/erp24/views/shift-transfer/update.php @@ -91,6 +91,22 @@ $this->registerJs('var getMeOut = false;', \yii\web\View::POS_HEAD, 'getMeOut') +
+
+ 'Авторский букет'] ?> + field($shiftTransfer, 'groups2')->checkboxList($hints2, ['checked' => 1, + 'onclick' => '$("#acceptDiv").removeClass("d-none");']) ?> +
+
groups1) ? 'open' : '' ?> > + Другие +
+ + field($shiftTransfer, 'groups1')->checkboxList($hints1, ['checked' => 1, + 'onclick' => '$("#acceptDiv").removeClass("d-none");']) ?> +
+
+
+
'btn btn-secondary',