Correzione dimensioni barcode
This commit is contained in:
parent
8fdc32cc84
commit
870aec890c
|
@ -10,7 +10,13 @@ echo '<style>
|
|||
}
|
||||
</style>';
|
||||
|
||||
$width_factor = 0.33 * 110;
|
||||
$height_factor = 25.93;
|
||||
|
||||
$size = $settings['width'] / $width_factor;
|
||||
$height = $settings['height'] / $height_factor / $size;
|
||||
|
||||
$number = 1; // 32
|
||||
for ($i = 0; $i < $number; ++$i) {
|
||||
echo '<barcode code="'.$articolo->barcode.'" type="EAN13" height="1" size="1" class="barcode" />';
|
||||
echo '<barcode code="'.$articolo->barcode.'" type="EAN13" height="'.$height.'" size="'.$size.'" class="barcode" />';
|
||||
}
|
||||
|
|
|
@ -448,4 +448,4 @@ UPDATE `zz_hooks` SET `name` = 'Aggiornamenti' WHERE `class` = 'Modules\\Aggiorn
|
|||
|
||||
-- Aggiunta stampa Barcode
|
||||
INSERT INTO `zz_prints` (`id_module`, `name`, `title`, `filename`, `directory`, `icon`, `options`, `predefined`, `previous`, `enabled`, `default`) VALUES
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Articoli'), 'Barcode', 'Barcode', 'Barcode', 'barcode', 'fa fa-print', '', 1, '', 1, 1);
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Articoli'), 'Barcode', 'Barcode', 'Barcode', 'barcode', 'fa fa-print', '{"width": 54, "height": 20}', 1, '', 1, 1);
|
||||
|
|
Loading…
Reference in New Issue