From 9a2f2cd40b0c9a94cc38c586ff39b9a11df810e3 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 29 Aug 2018 16:28:50 +0200 Subject: [PATCH] =?UTF-8?q?Aggiunta=20possibilit=C3=A0=20di=20stampare=20f?= =?UTF-8?q?atture=20senza=20logo=20e=20dati=20fornitore=20(per=20carta=20i?= =?UTF-8?q?ntestata)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/fatture/footer.php | 24 ++++++++++++++++++++++-- templates/fatture/header.php | 18 +++++++++++++++--- update/2_4_1.sql | 8 +++++++- 3 files changed, 44 insertions(+), 6 deletions(-) diff --git a/templates/fatture/footer.php b/templates/fatture/footer.php index 9700ba1d8..0f205cdf9 100644 --- a/templates/fatture/footer.php +++ b/templates/fatture/footer.php @@ -380,6 +380,26 @@ echo ' $dicitura_fissa_fattura$ - +'; -$default_footer$'; + + + +if ($options['hide_footer']) { + + echo ' + + + + + +
+   + +   +
'; + +} +else{ + echo '$default_footer$'; +} \ No newline at end of file diff --git a/templates/fatture/header.php b/templates/fatture/header.php index 06cb5b34e..4f94a1795 100644 --- a/templates/fatture/header.php +++ b/templates/fatture/header.php @@ -1,10 +1,22 @@ +
+
+
+
+
+
'; +}else{ + echo ' + + $default_header$'; +} + echo ' - -$default_header$
-
diff --git a/update/2_4_1.sql b/update/2_4_1.sql index b5830ec60..b8f794156 100644 --- a/update/2_4_1.sql +++ b/update/2_4_1.sql @@ -490,4 +490,10 @@ UPDATE `zz_prints` SET `enabled` = 0 WHERE `name` IN( 'Ordine di servizio', 'Ord UPDATE `zz_views` SET `query` = '\'Intervento\'' WHERE `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Interventi') AND `name` = '_print_'; -- Flag per definire i segmenti di note di accredito e di addebito -ALTER TABLE `zz_segments` ADD `predefined_accredito` TINYINT(1) NOT NULL AFTER `predefined`, ADD `predefined_addebito` TINYINT(1) NOT NULL AFTER `predefined_accredito`; \ No newline at end of file +ALTER TABLE `zz_segments` ADD `predefined_accredito` TINYINT(1) NOT NULL AFTER `predefined`, ADD `predefined_addebito` TINYINT(1) NOT NULL AFTER `predefined_accredito`; + +-- Fattura di vendita senza intestazione (per carta intestata) +INSERT INTO `zz_prints` (`id`, `id_module`, `is_record`, `name`, `title`, `directory`, `previous`, `options`, `icon`, `version`, `compatibility`, `order`, `main`, `default`, `enabled`) VALUES +(NULL, (SELECT id FROM zz_modules WHERE name='Fatture di vendita'), 1, 'Fattura di vendita (senza intestazione)', 'Fattura di vendita (senza intestazione)', 'fatture', 'iddocumento', '{"hide_header":true, "hide_footer":true}', 'fa fa-print', '', '', 0, 0, 1, 1); + +