Add batch ULINE label printing for all asset types
A multi-select batch sheet at /print/asset-label-batch/<type> lays selected assets onto ULINE label pages (6-up 3x3 or dense 72-up mini), with code-type and encode toggles matching the single label, plus a start-cell offset for partial sheets. Print Labels buttons on all five asset list pages. The per-type config and encode resolution are extracted to a shared print/assetLabel.js used by both the single and batch views. Measuring-tool batches encode each tool inspection- operation code (decode-verified 0615). 808 tests pass. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -184,6 +184,8 @@ them under `instance/branding/`.
|
||||
|
||||
The shared asset-label generator lives at `/print/asset-label/<assettype>/<id>` (public, like the other `/print/*` pages; `assettype` is one of `machine`, `computer`, `printer`, `network_device`, `measuring_tool`, and `id` is the asset's plugin id). It can encode the asset page link, the asset number, the serial number, a custom `qr_target_<type>` template, or - for measuring tools by default - the asset's inspection location code (the leading token of the location name, e.g. `0615`). A measuring tool with no location falls back to its asset page.
|
||||
|
||||
The batch generator at `/print/asset-label-batch/<assettype>` (reached from the "Print Labels" button on each asset list page) lays a multi-selection of one type onto ULINE label sheets: a 6-up 3 in x 3 in format or a dense 72-up mini-label format, with a start-cell offset for reusing partial sheets. It reuses the same code-type and `label_default_encodes_<type>` defaults as the single label.
|
||||
|
||||
### map
|
||||
|
||||
| Key | Default | Notes |
|
||||
|
||||
Reference in New Issue
Block a user