mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added ipn to possible columns in project BOM view
This fixes issue #418
This commit is contained in:
parent
cd7013f776
commit
563edb1731
1 changed files with 10 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue