Print labels with template selection
The current implementation of "Print labels" button is very straightforward and supports a single template. In this ticket we implement a new <PrintLabel
component that replaces the <Button
.
Multiple labels
We are able to register multiple templates with the same name
and categoryTag
, but with different sortOrder
:
The PrintLabel
component will first load the available templates from AppSettings
.
When there are multiple templates available, the component must display a dialog to allow the user to select which template to use.
The dialog should allow the user to set the "Number of copies" (repeats of one label) with default value 1
and a checkbox if the copies of labels should be "Collated" (AB,AB,AB
) or not (AAA,BBB
)
Friendly names for label templates
We will use CodeValue
group = "BARCODE_LABEL"
and then use the setting title INVENTORYITEM
or for multiple templates INVENTORYITEM_1
and INVENTORYITEM_2
for friendly names of labels in multiple languages.