2017-09-08 17:03:47 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// TABELLA PRINCIPALE
|
|
|
|
echo '
|
2017-09-08 18:19:39 +02:00
|
|
|
<table class="table-bordered">';
|
2017-09-08 17:03:47 +02:00
|
|
|
|
|
|
|
if ($mostra_prezzi) {
|
|
|
|
// Riga 1
|
|
|
|
echo "
|
|
|
|
<tr>
|
2017-09-08 18:19:39 +02:00
|
|
|
<td rowspan='7'>
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class='small-bold'>".tr('Note', [], ['upper' => true]).'</p>
|
2017-09-12 16:17:11 +02:00
|
|
|
<p>'.nl2br($records[0]['note'])."</p>
|
2017-09-08 17:03:47 +02:00
|
|
|
</td>
|
2017-09-08 18:19:39 +02:00
|
|
|
<td style='width:33mm;'>
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class='small-bold'>".tr('Totale imponibile', [], ['upper' => true]).'</p>
|
2017-09-08 17:03:47 +02:00
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// Dati riga 1
|
|
|
|
echo "
|
|
|
|
<tr>
|
2017-09-08 18:19:39 +02:00
|
|
|
<td class='cell-padded text-right'>
|
2017-09-08 17:03:47 +02:00
|
|
|
".Translator::numberToLocale($imponibile_ddt, 2).' €
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// Riga 2
|
|
|
|
echo "
|
|
|
|
<tr>
|
2017-09-08 18:19:39 +02:00
|
|
|
<td style='width:33mm;'>
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class='small-bold'>".tr('Totale imposte', [], ['upper' => true])."</p>
|
2017-09-08 17:03:47 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-09-08 18:19:39 +02:00
|
|
|
<td class='cell-padded text-right'>
|
2017-09-08 17:03:47 +02:00
|
|
|
".Translator::numberToLocale($totale_iva, 2).' €
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
|
|
|
|
// Riga 3
|
|
|
|
echo "
|
|
|
|
<tr>
|
2017-09-08 18:19:39 +02:00
|
|
|
<td>
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class='small-bold'>".tr('Totale documento', [], ['upper' => true])."</p>
|
2017-09-08 17:03:47 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-09-08 18:19:39 +02:00
|
|
|
<td class='cell-padded text-right'>
|
2017-09-08 17:03:47 +02:00
|
|
|
".Translator::numberToLocale($totale_ddt, 2).' €
|
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
} else {
|
|
|
|
// Riga 1
|
|
|
|
echo "
|
|
|
|
<tr>
|
|
|
|
<td style='height:40mm;'>
|
2017-09-10 14:35:41 +02:00
|
|
|
<p class='small-bold'>".tr('Note', [], ['upper' => true]).'</p>
|
2017-09-12 16:17:11 +02:00
|
|
|
'.nl2br($records[0]['note']).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</td>
|
|
|
|
</tr>';
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
|
|
|
</table>';
|
|
|
|
|
|
|
|
echo '
|
2017-09-08 18:19:39 +02:00
|
|
|
<table class="table-bordered">
|
2017-09-08 17:03:47 +02:00
|
|
|
<tr>
|
|
|
|
<th class="border-bottom border-right" style="width:33%">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Aspetto beni', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
|
|
|
<th class="border-bottom border-right" style="width:33%">
|
2017-09-12 16:17:11 +02:00
|
|
|
'.tr('Causale trasporto', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
|
|
|
<th class="border-bottom" style="width:33%">
|
2017-09-12 16:17:11 +02:00
|
|
|
'.tr('Porto', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="cell-padded border-right">
|
|
|
|
$aspettobeni$
|
|
|
|
</td>
|
|
|
|
<td class="cell-padded border-right">
|
|
|
|
$causalet$
|
|
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
|
|
$porto$
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th class="border-bottom border-right">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('N<sup>o</sup> colli', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
|
|
|
<th class="border-bottom border-right">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Tipo di spedizione', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
|
|
|
<th class="border-bottom">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Vettore', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="cell-padded border-right">
|
|
|
|
$n_colli$
|
|
|
|
</td>
|
|
|
|
<td class="cell-padded border-right">
|
|
|
|
$spedizione$
|
|
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
|
|
$vettore$
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<th class="border-bottom border-right">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Firma conducente', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
|
|
|
<th class="border-bottom border-right">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Firma vettore', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
|
|
|
<th class="border-bottom">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Firma destinatario', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="cell-padded border-right">
|
|
|
|
<br>
|
|
|
|
</td>
|
|
|
|
<td class="cell-padded border-right">
|
|
|
|
<br>
|
|
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
|
|
<br>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>';
|
|
|
|
|
|
|
|
echo '
|
|
|
|
$pagination$';
|