2017-09-07 16:51:14 +02:00
|
|
|
<?php
|
|
|
|
|
2018-08-29 16:28:50 +02:00
|
|
|
if ($options['hide_header']) {
|
2018-09-03 16:49:43 +02:00
|
|
|
echo '
|
2018-08-29 16:28:50 +02:00
|
|
|
<!-- Intestazione vuota fornitore -->
|
|
|
|
<div class="row" style="height:111px;">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-6 text-right">
|
|
|
|
</div>
|
|
|
|
</div>';
|
2018-09-03 16:49:43 +02:00
|
|
|
} else {
|
|
|
|
echo '
|
2018-08-29 16:28:50 +02:00
|
|
|
<!-- Intestazione fornitore -->
|
|
|
|
$default_header$';
|
|
|
|
}
|
2018-09-03 16:49:43 +02:00
|
|
|
|
2017-09-07 16:51:14 +02:00
|
|
|
echo '
|
2019-07-11 17:47:16 +02:00
|
|
|
|
2017-09-07 16:51:14 +02:00
|
|
|
<div class="row">
|
|
|
|
<!-- Dati Fattura -->
|
|
|
|
<div class="col-xs-6">
|
2019-07-12 12:56:46 +02:00
|
|
|
<div class="text-center" style="height:5mm;">
|
|
|
|
<b>$tipo_doc$</b>
|
|
|
|
</div>
|
2017-09-07 16:51:14 +02:00
|
|
|
|
2019-07-12 12:56:46 +02:00
|
|
|
<table class="table">
|
2017-09-07 16:51:14 +02:00
|
|
|
<tr>
|
|
|
|
<td valign="top" class="border-full text-center">
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Nr. documento', [], ['upper' => true]).'</p>
|
2019-07-10 11:53:35 +02:00
|
|
|
<p>$numero$</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-right border-bottom border-top text-center">
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Data documento', [], ['upper' => true]).'</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
<p>$data$</p>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-right border-bottom border-top text-center">
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Cliente', [], ['upper' => true]).'</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
<p>$c_codice$</p>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="border-right border-bottom border-top center text-center">
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Foglio', [], ['upper' => true]).'</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
<p>{PAGENO}/{nb}</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" style="height:10mm;padding-top:2mm;">
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Pagamento', [], ['upper' => true]).'</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
<p>$pagamento$</p>
|
|
|
|
</td>
|
|
|
|
<td colspan="2" style="height:10mm;padding-top:2mm;">
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Banca di appoggio', [], ['upper' => true]).'</p>
|
2019-01-10 18:41:25 +01:00
|
|
|
<p><small>$appoggiobancario$</small></p>
|
2017-09-07 16:51:14 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-09-08 18:19:39 +02:00
|
|
|
<tr>
|
|
|
|
<td colspan="2" style="height:10mm;padding-top:2mm;">
|
|
|
|
<p class="small-bold">'.tr('IBAN').'</p>
|
2018-04-23 12:10:23 +02:00
|
|
|
<p>$codiceiban$</p>
|
2017-09-08 18:19:39 +02:00
|
|
|
</td>
|
|
|
|
<td colspan="2" style="height:10mm;padding-top:2mm;">
|
|
|
|
<p class="small-bold">'.tr('BIC').'</p>
|
2018-04-23 12:10:23 +02:00
|
|
|
<p>$bic$</p>
|
2017-09-08 18:19:39 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-09-07 16:51:14 +02:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2019-07-12 12:56:46 +02:00
|
|
|
<div class="col-xs-6" style="margin-left: 10px">
|
2017-09-07 16:51:14 +02:00
|
|
|
<table class="table" style="width:100%;margin-top:5mm;">
|
|
|
|
<tr>
|
2017-09-21 16:42:27 +02:00
|
|
|
<td colspan=2 class="border-full"'.(!$fattura_accompagnatoria ? ' style="height:20mm;"' : '').'>
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
<p>$c_ragionesociale$</p>
|
2019-05-08 18:52:23 +02:00
|
|
|
<p>'.(!empty($c_indirizzo) ? $c_indirizzo : '').(!empty($c_citta_full) ? '<br>'.$c_citta_full : '').'</p>
|
|
|
|
<small>'.(!empty($c_codice_destinatario) ? tr('Cod.Fatturazione').': '.$c_codice_destinatario : '').'</small>
|
2017-09-07 16:51:14 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-09-07 17:50:42 +02:00
|
|
|
<td class="border-bottom border-left">
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Partita IVA', [], ['upper' => true]).'</p>
|
2017-09-07 17:50:42 +02:00
|
|
|
</td>
|
|
|
|
<td class="border-right border-bottom text-right">
|
|
|
|
<small>$c_piva$</small>
|
2017-09-07 16:51:14 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-09-07 17:50:42 +02:00
|
|
|
<td class="border-bottom border-left">
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class="small-bold">'.tr('Codice fiscale', [], ['upper' => true]).'</p>
|
2017-09-07 17:50:42 +02:00
|
|
|
</td>
|
|
|
|
<td class="border-right border-bottom text-right">
|
|
|
|
<small>$c_codicefiscale$</small>
|
2017-09-07 16:51:14 +02:00
|
|
|
</td>
|
2017-09-21 16:42:27 +02:00
|
|
|
</tr>';
|
|
|
|
|
2019-07-11 15:05:36 +02:00
|
|
|
if (!empty($destinazione)) {
|
2017-09-21 16:42:27 +02:00
|
|
|
echo '
|
|
|
|
<tr>
|
2019-07-12 12:56:46 +02:00
|
|
|
<td colspan=2 class="border-full" style="height:16mm;">
|
2017-09-21 16:42:27 +02:00
|
|
|
<p class="small-bold">'.tr('Destinazione diversa', [], ['upper' => true]).'</p>
|
2019-07-11 15:05:36 +02:00
|
|
|
<small>$c_destinazione$</small>
|
2017-09-21 16:42:27 +02:00
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
2017-09-07 16:51:14 +02:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>';
|