Fix label templates (#4128)

This commit is contained in:
artoscinote 2022-05-30 16:54:19 +02:00 committed by GitHub
parent 81a9a7225b
commit cda5e88c05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,27 @@
# frozen_string_literal: true
class FixLabelTemplate < ActiveRecord::Migration[6.1]
def change
LabelTemplate.last.update(
name: 'SciNote Item',
size: '1" x 0.5" / 25.4mm x 12.7mm',
language_type: :zpl,
default: true,
content:
<<~HEREDOC
^XA
^MTT
^MUD,300,300
^PR2
^MD30
^LH20,20
^PW310
^CF0,23
^FO0,0^FD{{item_id}}^FS
^FO0,20^BQN,2,4^FDMA,{{item_id}}^FS
^FO95,30^FB180,4,0,L^FD{{item_name}}^FS^FS
^XZ
HEREDOC
)
end
end

View file

@ -8370,4 +8370,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20220310105144'), ('20220310105144'),
('20220321122111'), ('20220321122111'),
('20220325101011'), ('20220325101011'),
('20220328164215'); ('20220328164215'),
('20220530144300');