Introduzione stampa barcode
This commit is contained in:
parent
0c3def788b
commit
115c801884
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
echo '<style>
|
||||
.barcode {
|
||||
padding: 4mm;
|
||||
padding-bottom: 2.5mm;
|
||||
margin: 0;
|
||||
}
|
||||
</style>';
|
||||
|
||||
$number = 32;
|
||||
for ($i = 0; $i < $number; ++$i) {
|
||||
echo '<barcode code="'.$articolo->barcode.'" type="EAN13" height="1" size="1" class="barcode" />';
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
<?php
|
||||
|
||||
echo '
|
||||
';
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
use Modules\Articoli\Articolo;
|
||||
|
||||
$articolo = Articolo::find($id_record);
|
|
@ -445,3 +445,7 @@ ALTER TABLE `zz_hooks` DROP `frequency`;
|
|||
|
||||
-- Fix nome hook Aggiornamenti
|
||||
UPDATE `zz_hooks` SET `name` = 'Aggiornamenti' WHERE `class` = 'Modules\\Aggiornamenti\\UpdateHook';
|
||||
|
||||
-- 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);
|
||||
|
|
Loading…
Reference in New Issue