Skip to content

Show Part ID in Project BOM overviewΒ #1161

@fsbrc

Description

@fsbrc

Is your feature request related to a problem? Please describe.

  • In the Project BOM overview it is currently not possible to see the actual Part ID of the referenced part. Only the IPN and BOM entry / project-related ID are possible columns

Describe the solution you'd like

  • Add an additional column to the Project BOM overview that displays the Part ID of the linked Part entity.
  • The column should show the real Part database ID (part.getId()), not the Project BOM entry ID.

Additional context
For someone who is able to code this is probably a really easy feature request.
Likely implementation location: src/DataTables/ProjectBomEntriesDataTable.php
Possible implementation approach:
Add a TextColumn that renders the Part ID via the ProjectBOMEntry, e.g. by accessing getPart()->getId().
This feature would significantly improve usability when working with large BOMs and when referencing parts across projects.

->add('part_id', TextColumn::class, [ 'label' => 'Part-ID', 'render' => function ($value, ProjectBOMEntry $context) { return $context->getPart()?->getId() ?? ''; }, ])

It would be really great if one could search for the Part-ID via the search bar as well just like the IPN

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions