From: Alexander Smirnov Date: Fri, 20 Dec 2024 10:28:32 +0000 (+0300) Subject: [ERP-261] группы товаров X-Git-Tag: 1.7~116^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=bd5526cdf204903f01a309285310271dfaa26fb4;p=erp24_rep%2Fyii-erp24%2F.git [ERP-261] группы товаров --- diff --git a/erp24/records/ShiftTransfer.php b/erp24/records/ShiftTransfer.php index 25839337..d06c2b2e 100644 --- a/erp24/records/ShiftTransfer.php +++ b/erp24/records/ShiftTransfer.php @@ -91,7 +91,7 @@ class ShiftTransfer extends \yii\db\ActiveRecord 'discrepancy_rubles' => 'Расхождение факта, руб.', 'comment' => 'Комментарий', 'report' => 'Отчёт', - 'product_groups' => 'Продуктовые группы', + 'product_groups' => 'Группы товаров', 'groups1' => 'Другие группы', 'groups2' => 'Основная группа', 'error_text' => 'Error Text', diff --git a/erp24/views/shift-transfer/index.php b/erp24/views/shift-transfer/index.php index 280f0e81..897bc542 100644 --- a/erp24/views/shift-transfer/index.php +++ b/erp24/views/shift-transfer/index.php @@ -56,6 +56,15 @@ use app\controllers\ShiftTransferController; } ], 'goods_transfer_summ', + [ + 'attribute' => 'product_groups', + 'format' => 'html', + 'value' => function ($model) { + $productGroups = explode(',', $model['product_groups'] ?? ''); + $hints1 = \yii_app\records\ProductsClass::getHints(); + return implode('
', array_map(function($el) use ($hints1) { return $hints1[$el]; }, $productGroups)); + } + ], 'goods_transfer_count', 'discrepancy_pieces', 'discrepancy_rubles',