Merge pull request #4542 from rekonder/aj_SCI_7346

Update default density for label templates [SCI-7346]
This commit is contained in:
Alex Kriuchykhin 2022-10-19 10:04:53 +02:00 committed by GitHub
commit 482044a448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -135,7 +135,7 @@
methods: {
setDefaults() {
!this.unit && (this.unit = 'in');
!this.density && (this.density = 8);
!this.density && (this.density = 12);
!this.width && (this.width = this.unit === 'in' ? 2 : 50.8);
!this.height && (this.height = this.unit === 'in' ? 1 : 25.4);
},

View file

@ -8,7 +8,7 @@ class FluicsLabelTemplate < LabelTemplate
height_mm: 12.7,
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl],
unit: 0,
density: 8
density: 12
)
end

View file

@ -8,7 +8,7 @@ class ZebraLabelTemplate < LabelTemplate
height_mm: 12.7,
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl],
unit: 0,
density: 8
density: 12
)
end
end

View file

@ -4,7 +4,7 @@ class AddLabelTemplateUnits < ActiveRecord::Migration[6.1]
def up
change_table :label_templates, bulk: true do |t|
t.integer :unit, default: 0
t.integer :density, default: 8
t.integer :density, default: 12
end
end

View file

@ -712,7 +712,7 @@ CREATE TABLE public.label_templates (
height_mm double precision,
height_mm double precision,
unit integer DEFAULT 0,
density integer DEFAULT 8
density integer DEFAULT 12
);