]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-421] Вывод числа фотографий в список документов списания feature_filippov_erp-421_add_count_images_write_offs origin/feature_filippov_erp-421_add_count_images_write_offs
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Tue, 27 May 2025 09:23:22 +0000 (12:23 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Tue, 27 May 2025 09:23:22 +0000 (12:23 +0300)
erp24/views/write_offs_erp/index.php

index bc01668dcc81b347e6b31236cb752396ac6e3dfb..8dec63033b8707aff8c59fbbe4cbbf29ea2ecfc6 100644 (file)
@@ -62,6 +62,13 @@ $columns = [
         }
     ],
     'comment:ntext',
+    [
+        'attribute' => 'images',
+        'label' => 'Фото',
+        'value' => function ($data) {
+            return count($data->imagesWriteOffsErp);
+        }
+    ],
     [
         'class' => ActionColumn::className(),
         'template' => $buttonTemplate,