mirror of
https://github.com/rickbarrette/redmine_qbo_labels.git
synced 2026-11-17 17:50:36 -05:00
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>
8 lines
340 B
ERB
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 %>
|