Skip to content

Commit 0e5f721

Browse files
committed
Added part.id as column in BOM
1 parent 4e7e369 commit 0e5f721

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/DataTables/ProjectBomEntriesDataTable.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ public function configure(DataTable $dataTable, array $options): void
6666
'visible' => false,
6767
])
6868

69+
->add('partId', TextColumn::class, [
70+
'label'=> $this->translator->trans('part.table.part_id'),
71+
'visible' => false,
72+
'orderField' => 'part.id',
73+
'render' => function ($value, ProjectBOMEntry $context) {
74+
return $context->getPart()->getId();
75+
}
76+
])
77+
6978
->add('quantity', TextColumn::class, [
7079
'label' => $this->translator->trans('project.bom.quantity'),
7180
'className' => 'text-center',

0 commit comments

Comments
 (0)