diff --git a/templates/ordini/body.php b/templates/ordini/body.php index 35655587f..d686b9a67 100755 --- a/templates/ordini/body.php +++ b/templates/ordini/body.php @@ -126,7 +126,7 @@ foreach ($righe as $riga) { '.nl2br($r['descrizione']); if ($riga->isArticolo()) { - if ($documento->direzione == 'entrata') { + if ($documento->direzione == 'entrata' && !$options['hide_codice']) { // Codice articolo $text = tr('COD. _COD_', [ '_COD_' => $riga->codice, diff --git a/update/2_4_29.sql b/update/2_4_29.sql index 05b66ebc9..5332e93f6 100644 --- a/update/2_4_29.sql +++ b/update/2_4_29.sql @@ -39,4 +39,7 @@ UPDATE `zz_settings` SET `nome` = 'Ritenuta d''acconto predefinita' WHERE `nome` UPDATE `zz_views` SET `query` = 'GROUP_CONCAT(DISTINCT(SELECT DISTINCT(ragione_sociale) FROM an_anagrafiche WHERE idanagrafica = in_interventi_tecnici_assegnati.id_tecnico) SEPARATOR \', \')' WHERE `zz_views`.`name` = 'Tecnici assegnati'; -- Fix options Mansioni referenti -UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM an_mansioni WHERE 1=1 HAVING 2=2 ORDER BY `nome`' WHERE `zz_modules`.`name` = 'Mansioni referenti'; \ No newline at end of file +UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM an_mansioni WHERE 1=1 HAVING 2=2 ORDER BY `nome`' WHERE `zz_modules`.`name` = 'Mansioni referenti'; + +-- Nuova stampa Ordine cliente (senza codici) +INSERT INTO `zz_prints` (`id`, `id_module`, `is_record`, `name`, `title`, `filename`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `predefined`, `default`, `enabled`) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name`='Ordini cliente'), '1', 'Ordine cliente (senza codici)', 'Ordine cliente (senza codici)', 'Ordine cliente num. {numero} del {data}', 'ordini', 'idordine', '{\"pricing\": true, \"last-page-footer\": true, \"hide_codice\": true}', 'fa fa-print', '', '', '0', '0', '1', '1'); \ No newline at end of file