Footer Contratti e Preventivi

This commit is contained in:
Thomas Zilio 2019-07-29 17:53:29 +02:00
parent 7c1582d29c
commit 5ffcd36322
5 changed files with 46 additions and 35 deletions

View File

@ -325,19 +325,3 @@ if (empty($documento->stato->fatturabile)) {
<p class="text-center"><b>'.tr('Il tutto S.E. & O.').'</b></p>
<p class="text-center">'.tr("In attesa di un Vostro Cortese riscontro, colgo l'occasione per porgere Cordiali Saluti").'</p>';
}
// Firma
echo '<div style="position:absolute; bottom:'.($settings['margins']['bottom'] + $settings['footer-height']).'px">
<table>
<tr>
<td style="vertical-align:bottom;" width="50%">
'.tr('').', ___________________________
</td>
<td align="center" style="vertical-align:bottom;" width="50%">
'.tr('Firma per accettazione', [], ['upper' => true]).'<br><br>
_____________________________________________
</td>
</tr>
</table>
<br></div>';

View File

@ -0,0 +1,20 @@
<?php
if (!$is_last_page) {
return;
}
echo '
<table>
<tr>
<td style="vertical-align:bottom;" width="50%">
'.tr('').', ___________________________
</td>
<td align="center" style="vertical-align:bottom;" width="50%">
'.tr('Firma per accettazione', [], ['upper' => true]).'<br><br>
_____________________________________________
</td>
</tr>
</table>
<br>';

View File

@ -305,20 +305,3 @@ echo '
// Conclusione
echo '
<p class="text-center">'.tr("In attesa di un Vostro Cortese riscontro, colgo l'occasione per porgere Cordiali Saluti").'</p>';
// Firma
echo '
<div style="position:absolute; bottom:'.($settings['margins']['bottom'] + $settings['footer-height']).'px">
<table>
<tr>
<td style="vertical-align:bottom;" width="50%">
'.tr('').', ___________________________
</td>
<td align="center" style="vertical-align:bottom;" width="50%">
'.tr('Firma per accettazione', [], ['upper' => true]).'<br><br>
_____________________________________________
</td>
</tr>
</table>
<br></div>';

View File

@ -0,0 +1,20 @@
<?php
if (!$is_last_page) {
return;
}
echo '
<table>
<tr>
<td style="vertical-align:bottom;" width="50%">
'.tr('').', ___________________________
</td>
<td align="center" style="vertical-align:bottom;" width="50%">
'.tr('Firma per accettazione', [], ['upper' => true]).'<br><br>
_____________________________________________
</td>
</tr>
</table>
<br>';

View File

@ -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)';