b5986ba8e2
I also change the default value for scale_height to '0.01' Test plan: 1)Home > Cataloguing > Tools: Label creator > Manage Layout or New Layout 2)Make a new layout or edit an existing one 3)Notice the 2 new fields "Barcode width/Barcode height" 4)Save it like this 5)Create a batch of barcode and export if in PDF 6)Notice the size of barcode 7)Go back to your existing layout 8)Enter some values (Barcode width: 1.6 / Barcode height: 0.02), save 9)Take back your batch of barcode and export it in PDF 10)The barcode should be 2x bigger Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Johanna Miettunen <johanna.miettunen@haaga-helia.fi> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
23 lines
834 B
Perl
Executable file
23 lines
834 B
Perl
Executable file
use Modern::Perl;
|
|
|
|
return {
|
|
bug_number => "10762",
|
|
description => "Add 2 columns in 'creator_layouts' which define the width and height of barcodes",
|
|
up => sub {
|
|
my ($args) = @_;
|
|
my ($dbh, $out) = @$args{qw(dbh out)};
|
|
unless ( column_exists ( 'creator_layouts', 'scale_width' )) {
|
|
$dbh->do( q {
|
|
ALTER TABLE creator_layouts
|
|
ADD COLUMN scale_width FLOAT default 0.8 NOT NULL AFTER font_size
|
|
});
|
|
}
|
|
unless ( column_exists ( 'creator_layouts', 'scale_height')) {
|
|
$dbh->do( q {
|
|
ALTER TABLE creator_layouts
|
|
ADD COLUMN scale_height FLOAT default 0.01 NOT NULL AFTER scale_width
|
|
});
|
|
}
|
|
say $out "Table creator_layouts updated with 2 new columns";
|
|
},
|
|
}
|