2019-07-09 16:43:08 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once __DIR__.'/../../core.php';
|
|
|
|
|
|
|
|
$year_start = date('Y', strtotime($date_start));
|
|
|
|
$year_end = date('Y', strtotime($date_end));
|
|
|
|
|
2019-07-09 18:29:40 +02:00
|
|
|
$esercizio = $year_start == $year_end ? ' - '.tr('Esercizio _YEAR_', [
|
2019-07-09 16:43:08 +02:00
|
|
|
'_YEAR_' => $year_end,
|
|
|
|
]) : '';
|
|
|
|
|
|
|
|
if ('entrata' == $dir) {
|
2020-07-01 18:33:21 +02:00
|
|
|
$titolo = tr('Registro iva vendita dal _START_ al _END_ _SEZIONALE_', [
|
2019-07-09 16:43:08 +02:00
|
|
|
'_START_' => Translator::dateToLocale($date_start),
|
|
|
|
'_END_' => Translator::dateToLocale($date_end),
|
2020-07-06 14:16:16 +02:00
|
|
|
'_SEZIONALE_' => (!empty($sezionale)) ? ' - '.$sezionale : '',
|
2019-07-09 16:43:08 +02:00
|
|
|
], ['upper' => true]);
|
|
|
|
} elseif ('uscita' == $dir) {
|
2020-07-01 18:33:21 +02:00
|
|
|
$titolo = tr('Registro iva acquisto dal _START_ al _END_ _SEZIONALE_', [
|
2019-07-09 16:43:08 +02:00
|
|
|
'_START_' => Translator::dateToLocale($date_start),
|
|
|
|
'_END_' => Translator::dateToLocale($date_end),
|
2020-07-06 14:16:16 +02:00
|
|
|
'_SEZIONALE_' => (!empty($sezionale)) ? ' - '.$sezionale : '',
|
2019-07-09 16:43:08 +02:00
|
|
|
], ['upper' => true]);
|
|
|
|
}
|
|
|
|
|
2019-07-09 18:29:40 +02:00
|
|
|
$tipo = $dir == 'entrata' ? tr('Cliente') : tr('Fornitore');
|
2020-01-14 16:15:34 +01:00
|
|
|
$i = 0;
|
|
|
|
$color = '#dddddd';
|
2019-07-09 16:43:08 +02:00
|
|
|
|
|
|
|
echo '<h4><b>'.$titolo.'</b></h4>
|
|
|
|
|
2020-01-14 16:15:34 +01:00
|
|
|
<table class="table table-condensed" border="0">
|
2019-07-09 16:43:08 +02:00
|
|
|
<thead>
|
2020-01-14 16:15:34 +01:00
|
|
|
<tr bgcolor="'.$color.'">
|
|
|
|
<th>'.tr('Prot.').'</th>
|
|
|
|
<th>'.tr('N<sup>o</sup> doc.').'</th>
|
2020-07-01 18:10:00 +02:00
|
|
|
<th>'.tr('Data doc.').'</th>
|
|
|
|
<th>'.tr('Data comp.').'</th>
|
2019-07-09 16:43:08 +02:00
|
|
|
<th>'.tr('Tipo').'</th>
|
|
|
|
<th>'.$tipo.'</th>
|
2020-07-27 15:40:54 +02:00
|
|
|
<th>'.tr('Tot. doc.').'</th>
|
2019-07-09 16:43:08 +02:00
|
|
|
<th>'.tr('Imponibile').'</th>
|
|
|
|
<th>%</th>
|
|
|
|
<th>'.tr('Iva').'</th>
|
|
|
|
<th>'.tr('Imposta').'</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>';
|