2017-09-07 16:51:14 +02:00
|
|
|
<?php
|
2020-09-07 15:04:06 +02:00
|
|
|
/*
|
|
|
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
2021-01-20 15:08:51 +01:00
|
|
|
* Copyright (C) DevCode s.r.l.
|
2020-09-07 15:04:06 +02:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2017-09-07 16:51:14 +02:00
|
|
|
|
2021-10-27 10:15:01 +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 -->
|
2024-05-23 16:05:30 +02:00
|
|
|
<div class="col-xs-5">
|
2019-07-12 12:56:46 +02:00
|
|
|
<div class="text-center" style="height:5mm;">
|
|
|
|
<b>$tipo_doc$</b>
|
|
|
|
</div>
|
2024-05-22 13:15:34 +02:00
|
|
|
<br>
|
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>
|
2024-05-22 13:15:34 +02:00
|
|
|
<td valign="top" class="border-bottom border-top text-center">
|
|
|
|
<p class="small-bold text-muted">'.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>
|
|
|
|
|
2024-05-22 13:15:34 +02:00
|
|
|
<td class="border-bottom border-top text-center">
|
|
|
|
<p class="small-bold text-muted">'.tr('Data documento', [], ['upper' => true]).'</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
<p>$data$</p>
|
|
|
|
</td>
|
|
|
|
|
2024-05-22 13:15:34 +02:00
|
|
|
<td class="border-bottom border-top center text-center">
|
|
|
|
<p class="small-bold text-muted">'.tr('Foglio', [], ['upper' => true]).'</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
<p>{PAGENO}/{nb}</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2024-05-23 16:05:30 +02:00
|
|
|
<div class="col-xs-6 pull-right">
|
2024-05-22 13:15:34 +02:00
|
|
|
<table class="table border-bottom" >
|
2017-09-07 16:51:14 +02:00
|
|
|
<tr>
|
2024-05-23 16:05:30 +02:00
|
|
|
<td colspan=2>
|
2024-05-22 13:15:34 +02:00
|
|
|
<p class="small-bold text-muted">'.tr('Spett.le', [], ['upper' => true]).'</p>
|
2017-09-07 16:51:14 +02:00
|
|
|
<p>$c_ragionesociale$</p>
|
2023-02-16 11:06:51 +01:00
|
|
|
<p>'.(!empty($c_indirizzo) ? $c_indirizzo : '').(!empty($c_citta_full) ? '<br>'.$c_citta_full : '').'</p>';
|
2024-01-15 15:30:45 +01:00
|
|
|
if (empty($destinazione)) {
|
|
|
|
echo '
|
2024-05-23 16:05:30 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<p class="small-bold text-muted">'.tr('Codice destinatario', [], ['upper' => true]).'</p>
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<small>'.$c_codice_destinatario.'</small>
|
|
|
|
</td>
|
|
|
|
</tr>';
|
2024-01-15 15:30:45 +01:00
|
|
|
}
|
|
|
|
echo '
|
2017-09-07 16:51:14 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2024-05-22 13:15:34 +02:00
|
|
|
<td>
|
|
|
|
<p class="small-bold text-muted">'.tr('Partita IVA', [], ['upper' => true]).'</p>
|
2017-09-07 17:50:42 +02:00
|
|
|
</td>
|
2024-05-22 13:15:34 +02:00
|
|
|
<td class="text-right">
|
2017-09-07 17:50:42 +02:00
|
|
|
<small>$c_piva$</small>
|
2017-09-07 16:51:14 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2024-05-22 13:15:34 +02:00
|
|
|
<td >
|
|
|
|
<p class="small-bold text-muted">'.tr('Codice fiscale', [], ['upper' => true]).'</p>
|
2017-09-07 17:50:42 +02:00
|
|
|
</td>
|
2024-05-22 13:15:34 +02:00
|
|
|
<td class="text-right">
|
2017-09-07 17:50:42 +02:00
|
|
|
<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>
|
2024-05-23 16:05:30 +02:00
|
|
|
<td class="border-bottom">
|
2024-05-22 13:15:34 +02:00
|
|
|
<p class="small-bold text-muted">'.tr('Destinazione diversa', [], ['upper' => true]).'</p>
|
2024-05-23 16:05:30 +02:00
|
|
|
</td>
|
|
|
|
<td class="border-bottom text-right">
|
2023-02-16 11:06:51 +01:00
|
|
|
<p><small>$c_destinazione$</small></p>
|
2017-09-21 16:42:27 +02:00
|
|
|
</td>
|
|
|
|
</tr>';
|
2024-05-24 09:17:38 +02:00
|
|
|
if ($codice_destinatario) {
|
|
|
|
echo '
|
2024-05-23 16:05:30 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<p class="small-bold text-muted">'.tr('Codice destinatario', [], ['upper' => true]).'</p>
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<small>'.$codice_destinatario.'</small>
|
|
|
|
</td>
|
|
|
|
</tr>';
|
2024-05-24 09:17:38 +02:00
|
|
|
}
|
2017-09-21 16:42:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
2017-09-07 16:51:14 +02:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>';
|