Rename SI column from "Name (SI)" to "SI Value"

The column now shows the parsed numeric value rather than the part name,
so the label should reflect that.
This commit is contained in:
Wieland Schopohl 2026-04-15 02:27:04 +02:00
parent 63486782c4
commit f75c5d7dd9
3 changed files with 6 additions and 7 deletions

View file

@ -119,8 +119,8 @@ final class PartsDataTable implements DataTableTypeInterface
'render' => fn($value, Part $context) => $this->partDataTableHelper->renderName($context),
'orderField' => 'NATSORT(part.name)'
])
->add('si_name', TextColumn::class, [
'label' => $this->translator->trans('part.table.si_name'),
->add('si_value', TextColumn::class, [
'label' => $this->translator->trans('part.table.si_value'),
'render' => function ($value, Part $context): string {
$siValue = SiValueSort::sqliteSiValue($context->getName());
if ($siValue !== null) {