mirror of
https://github.com/rickbarrette/redmine_qbo_labels.git
synced 2026-11-17 17:50:36 -05:00
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>
This commit is contained in:
commit
3e29f14f76
41 files changed
+2194
No files matched your search
@@ -0,0 +1,30 @@
|
||||
<%# Shown once, right after a printer is added or gets a new token: the agent's token and how to run the agent %>
|
||||
<% redmine_url = "#{Setting.protocol}://#{Setting.host_name}".chomp('/') %>
|
||||
<h2><%= link_to l(:label_label_printer_plural), label_printers_path %> » <%= @printer.name %></h2>
|
||||
|
||||
<div class="flash warning"><%= l(:text_qbo_labels_token_once) %></div>
|
||||
|
||||
<div class="box">
|
||||
<p><strong><%= l(:field_qbo_labels_token) %></strong></p>
|
||||
<pre class="qbo-label-token"><%= @printer.token %></pre>
|
||||
|
||||
<p><%= l(:text_qbo_labels_compose_intro) %></p>
|
||||
<pre class="qbo-label-token">services:
|
||||
label-agent:
|
||||
build: https://github.com/rickbarrette/redmine_qbo_label_agent.git
|
||||
restart: always
|
||||
# Host networking lets the agent find the printer on the local network (Bonjour/mDNS)
|
||||
network_mode: host
|
||||
environment:
|
||||
REDMINE_URL: <%= redmine_url %>
|
||||
AGENT_TOKEN: <%= @printer.token %>
|
||||
PRINTER_MODEL: QL-820NWB
|
||||
# Optional: skip the network search and use this printer
|
||||
# PRINTER: tcp://192.168.0.100
|
||||
# DEBUG, INFO or WARNING
|
||||
LOG_LEVEL: INFO
|
||||
</pre>
|
||||
<p><em class="info"><%= l(:text_qbo_labels_compose_after) %></em></p>
|
||||
</div>
|
||||
|
||||
<p><%= link_to l(:button_back), label_printers_path %></p>
|
||||
Reference in new issue
Block a user