Added ipn to possible columns in project BOM view

This fixes issue #418
This commit is contained in:
Jan Böhmer 2023-10-26 17:55:03 +02:00
parent cd7013f776
commit 563edb1731

View file

@ -100,7 +100,16 @@ class ProjectBomEntriesDataTable implements DataTableTypeInterface
throw new \Exception('This should never happen!');
},
])
->add('ipn', TextColumn::class, [
'label' => $this->translator->trans('part.table.ipn'),
'orderField' => 'part.ipn',
'visible' => false,
'render' => function ($value, ProjectBOMEntry $context) {
if($context->getPart() instanceof Part) {
return $context->getPart()->getIpn();
}
}
])
->add('description', MarkdownColumn::class, [
'label' => $this->translator->trans('part.table.description'),
'data' => function (ProjectBOMEntry $context) {