Inventory item barcode and label printing
On the inventory details page add a button "Assign barcode" (if ! inventory.barcode
) that calls POST /api/v1/i/{id}/barcode
. Please use only the response.barcode
to update Redux state.
Also add a button "Print label" that will use the template INVENTORYITEM
(from AppSettings
group LABEL
). See workspaces/ui-express/src/viability/ui/DetailsPage.tsx for printing labels, including the use of printLabels
function.
Printing multiple labels
In the Inventory list page, after selecting a few items I would like to print labels for the selected items. Add a new action "Print labels" to the FAB.
You will notice that on Android we need to render a Button
with href="intent://print....
. A dialog needs to be displayed, showing this action button so that Android will trigger the intent.