2019-07-15 11:16:12 +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/>.
|
|
|
|
*/
|
2019-07-15 11:16:12 +02:00
|
|
|
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<div class="text-center">
|
|
|
|
<h4 class="text-bold">'.tr('Consuntivo', [], ['upper' => true]).'</h4>
|
|
|
|
<b>'.tr('Contratto num. _NUM_ del _DATE_', [
|
2024-03-22 15:52:24 +01:00
|
|
|
'_NUM_' => $documento['numero'],
|
|
|
|
'_DATE_' => Translator::dateToLocale($documento['data_bozza']),
|
|
|
|
], ['upper' => true]).'</b>
|
2019-07-15 11:16:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-5 col-xs-offset-1">
|
|
|
|
<table class="table" style="width:100%;margin-top:5mm;">
|
|
|
|
<tr>
|
|
|
|
<td colspan=2 class="border-full" style="height:16mm;">
|
|
|
|
<p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p>
|
|
|
|
<p>$c_ragionesociale$</p>
|
|
|
|
<p>$c_indirizzo$ $c_citta_full$</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="border-bottom border-left">
|
|
|
|
<p class="small-bold">'.tr('Partita IVA', [], ['upper' => true]).'</p>
|
|
|
|
</td>
|
|
|
|
<td class="border-right border-bottom text-right">
|
|
|
|
<small>$c_piva$</small>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="border-bottom border-left">
|
|
|
|
<p class="small-bold">'.tr('Codice fiscale', [], ['upper' => true]).'</p>
|
|
|
|
</td>
|
|
|
|
<td class="border-right border-bottom text-right">
|
|
|
|
<small>$c_codicefiscale$</small>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>';
|
|
|
|
|
|
|
|
// Descrizione
|
|
|
|
if (!empty($documento['descrizione'])) {
|
|
|
|
echo '
|
2024-05-23 11:36:25 +02:00
|
|
|
<p>'.nl2br((string) $documento['descrizione']).'</p>
|
2019-07-15 11:16:12 +02:00
|
|
|
<br>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="2">'.tr('Documento', [], ['upper' => true]).'</th>
|
2023-11-27 15:49:01 +01:00
|
|
|
<th class="text-center" style="width:10%">'.tr('Km', [], ['upper' => true]).'</th>
|
2021-12-29 16:53:46 +01:00
|
|
|
<th class="text-center" style="width:10%">'.tr('Ore', [], ['upper' => true]).'</th>
|
|
|
|
<th class="text-center" style="width:15%">'.tr('Imponibile', [], ['upper' => true]).'</th>
|
|
|
|
<th class="text-center" style="width:15%">'.tr('Sconto', [], ['upper' => true]).'</th>
|
|
|
|
<th class="text-center" style="width:15%">'.tr('Totale imponibile', [], ['upper' => true]).'</th>
|
2019-07-15 11:16:12 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>';
|