Files
redmine_qbo_labels/app/views/label_jobs/create.js.erb
T
rickyandClaude Opus 5.5 3e29f14f76 New plugin: print part labels on a Brother QL printer
Print label in the top-right actions of issues, estimates and invoices
prints the customer's last name and the PO number (W/E/I + number) in big
bold letters on a 62mm continuous roll, with a preview of the label and
its status until it's printed. A print agent on the printer's network
(redmine_qbo_label_agent) asks Redmine for labels every couple of seconds
with its printer's token, so labels print from anywhere.

Administration » Label printers: printers, agent tokens and status,
recent labels. Settings: label lengths, capitals, poll interval, how long
a label waits for an offline agent, and logging the agents' requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 08:42:16 -05:00

8 lines
340 B
ERB

<% if @job.persisted? %>
QboLabels.follow(<%= raw({ url: label_job_path(@job), printer: @job.label_printer.name,
printer_online: @job.label_printer.online? }.to_json) %>);
<% else %>
$('#ajax-modal').html('<%= escape_javascript(render partial: 'label_jobs/dialog') %>');
QboLabels.initDialog();
<% end %>