From 5ffcd3632248a7c49d9e789aa73a3d67a2bf7d34 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Mon, 29 Jul 2019 17:53:29 +0200 Subject: [PATCH] Footer Contratti e Preventivi --- templates/contratti/body.php | 16 ---------------- templates/contratti/footer.php | 20 ++++++++++++++++++++ templates/preventivi/body.php | 17 ----------------- templates/preventivi/footer.php | 20 ++++++++++++++++++++ update/2_4_11.sql | 8 ++++++-- 5 files changed, 46 insertions(+), 35 deletions(-) create mode 100644 templates/contratti/footer.php create mode 100644 templates/preventivi/footer.php diff --git a/templates/contratti/body.php b/templates/contratti/body.php index b83c12f45..2c5382ad0 100644 --- a/templates/contratti/body.php +++ b/templates/contratti/body.php @@ -325,19 +325,3 @@ if (empty($documento->stato->fatturabile)) {

'.tr('Il tutto S.E. & O.').'

'.tr("In attesa di un Vostro Cortese riscontro, colgo l'occasione per porgere Cordiali Saluti").'

'; } - -// Firma -echo '
- - - - - - -
- '.tr('lì').', ___________________________ - - '.tr('Firma per accettazione', [], ['upper' => true]).'

- _____________________________________________ -
-
'; diff --git a/templates/contratti/footer.php b/templates/contratti/footer.php new file mode 100644 index 000000000..b11e39c48 --- /dev/null +++ b/templates/contratti/footer.php @@ -0,0 +1,20 @@ + + + + '.tr('lì').', ___________________________ + + + + '.tr('Firma per accettazione', [], ['upper' => true]).'

+ _____________________________________________ + + + +
'; diff --git a/templates/preventivi/body.php b/templates/preventivi/body.php index bbff59996..12c8c6747 100644 --- a/templates/preventivi/body.php +++ b/templates/preventivi/body.php @@ -305,20 +305,3 @@ echo ' // Conclusione echo '

'.tr("In attesa di un Vostro Cortese riscontro, colgo l'occasione per porgere Cordiali Saluti").'

'; - -// Firma -echo ' -
- - - - - - -
- '.tr('lì').', ___________________________ - - '.tr('Firma per accettazione', [], ['upper' => true]).'

- _____________________________________________ -
-
'; diff --git a/templates/preventivi/footer.php b/templates/preventivi/footer.php new file mode 100644 index 000000000..b11e39c48 --- /dev/null +++ b/templates/preventivi/footer.php @@ -0,0 +1,20 @@ + + + + '.tr('lì').', ___________________________ + + + + '.tr('Firma per accettazione', [], ['upper' => true]).'

+ _____________________________________________ + + + +
'; diff --git a/update/2_4_11.sql b/update/2_4_11.sql index df304626f..ce5fdc39a 100644 --- a/update/2_4_11.sql +++ b/update/2_4_11.sql @@ -258,5 +258,9 @@ UPDATE `zz_prints` SET `options` = REPLACE(`options`, "hide_header", "hide-heade UPDATE `zz_prints` SET `options` = REPLACE(`options`, "hide_footer", "hide-footer"); UPDATE `zz_prints` SET `options` = '{"last-page-footer": true}' WHERE `zz_prints`.`name` = 'Fattura di vendita'; UPDATE `zz_prints` SET `options` = '{"hide-header": true, "hide-footer": true, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Fattura di vendita (senza intestazione)'; -UPDATE `zz_prints` SET `options` = '{"pricing":true, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Ordine cliente'; -UPDATE `zz_prints` SET `options` = '{"pricing":false, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Ordine cliente (senza costi)'; +UPDATE `zz_prints` SET `options` = '{"pricing": true, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Ordine cliente'; +UPDATE `zz_prints` SET `options` = '{"pricing": false, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Ordine cliente (senza costi)'; +UPDATE `zz_prints` SET `options` = '{"pricing": true, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Preventivo'; +UPDATE `zz_prints` SET `options` = '{"pricing": false, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Preventivo (senza costi)'; +UPDATE `zz_prints` SET `options` = '{"pricing": true, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Contratto'; +UPDATE `zz_prints` SET `options` = '{"pricing": false, "last-page-footer": true}' WHERE `zz_prints`.`name` = 'Contratto (senza costi)';