Skip to content

Apply part lot filters for "generate labels (for part lots)" action in part tables #1153

@alexn5

Description

@alexn5

Is your feature request related to a problem? Please describe.
From what I see there is no easy way to generate labels for all part lots in a certain storage location. If I filter by storage location, select all and use the "Generate labels (for part lots)" action, the labels for all part lots of selected parts (including those with a different storage location) are generated.

Describe the solution you'd like
I would expect the filters related to stocks (storage location, owner, ...) to also be applied when generating labels for part lots from the parts table actions.

Describe alternatives you've considered
It's possible to generate the labels one by one, or make a db query to get the part lot ids and use the label generator tool.

Additional context
I've had a look at how to solve this and will likely submit a PR soon.
My approach is to send the relevant query parameters (for part lot filters) in the table_action form and then apply these filters again in PartsTableActionHandler

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