2021-03-01 15:01:02 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
2021-07-15 10:58:36 +02:00
|
|
|
* Copyright (C) DevCode s.r.l.
|
2021-03-01 15:01:02 +01: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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
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('Ordine num. _NUM_ del _DATE_', [
|
2021-03-01 16:01:19 +01:00
|
|
|
'_NUM_' => (!empty($documento['numero_esterno']) ? $documento['numero_esterno'] : $documento['numero']),
|
2021-03-01 15:01:02 +01:00
|
|
|
'_DATE_' => Translator::dateToLocale($documento['data']),
|
|
|
|
], ['upper' => true]).'</b>
|
|
|
|
</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 '
|
|
|
|
<p>'.nl2br($documento['descrizione']).'</p>
|
|
|
|
<br>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
|
|
|
<table class="table table-bordered">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th colspan="2">'.tr('Documento', [], ['upper' => true]).'</th>
|
2021-12-29 16:55:02 +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>
|
2021-03-01 15:01:02 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>';
|