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
|
|
|
|
2017-09-21 15:51:39 +02:00
|
|
|
if ($options['pricing']) {
|
2017-09-08 17:03:47 +02:00
|
|
|
// 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-21 10:01:07 +02:00
|
|
|
".Translator::numberToLocale($imponibile).' €
|
2017-09-08 17:03:47 +02:00
|
|
|
</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-21 10:01:07 +02:00
|
|
|
".Translator::numberToLocale($iva).' €
|
2017-09-08 17:03:47 +02:00
|
|
|
</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-21 10:01:07 +02:00
|
|
|
".Translator::numberToLocale($totale).' €
|
2017-09-08 17:03:47 +02:00
|
|
|
</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>';
|
|
|
|
|
2017-09-13 11:15:31 +02:00
|
|
|
// Informazioni aggiuntive
|
2017-09-08 17:03:47 +02:00
|
|
|
echo '
|
2017-09-08 18:19:39 +02:00
|
|
|
<table class="table-bordered">
|
2017-09-08 17:03:47 +02:00
|
|
|
<tr>
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small" class style="width:25%">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Aspetto beni', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small" class style="width:20%">
|
2017-09-14 10:27:49 +02:00
|
|
|
'.tr('Num. colli', [], ['upper' => true]).'
|
2017-09-13 11:15:31 +02:00
|
|
|
</th>
|
|
|
|
|
|
|
|
<th class="small" style="width:30%">
|
2017-09-12 16:17:11 +02:00
|
|
|
'.tr('Causale trasporto', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small" style="width:25%">
|
2017-09-12 16:17:11 +02:00
|
|
|
'.tr('Porto', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-09-13 11:15:31 +02:00
|
|
|
<td class="cell-padded">
|
2017-09-08 17:03:47 +02:00
|
|
|
$aspettobeni$
|
|
|
|
</td>
|
2017-09-13 11:15:31 +02:00
|
|
|
|
|
|
|
<td class="cell-padded">
|
|
|
|
$n_colli$
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td class="cell-padded">
|
2017-09-08 17:03:47 +02:00
|
|
|
$causalet$
|
|
|
|
</td>
|
2017-09-13 11:15:31 +02:00
|
|
|
|
2017-09-08 17:03:47 +02:00
|
|
|
<td class="cell-padded">
|
|
|
|
$porto$
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small">
|
|
|
|
'.tr('Peso lordo', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small">
|
2018-09-24 11:24:48 +02:00
|
|
|
'.tr('Volume', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Vettore', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
2017-09-13 11:15:31 +02:00
|
|
|
|
|
|
|
<th class="small">
|
|
|
|
'.tr('Tipo di spedizione', [], ['upper' => true]).'
|
|
|
|
</th>
|
2017-09-08 17:03:47 +02:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-09-13 11:15:31 +02:00
|
|
|
<td class="cell-padded">
|
2017-09-18 18:34:13 +02:00
|
|
|
'.(!empty($peso_lordo) ? Translator::numberToLocale($peso_lordo) : '').' KG
|
2017-09-08 17:03:47 +02:00
|
|
|
</td>
|
2017-09-13 11:15:31 +02:00
|
|
|
|
|
|
|
<td class="cell-padded">
|
2017-09-18 18:34:13 +02:00
|
|
|
'.(!empty($volume) ? Translator::numberToLocale($volume) : '').' M<sup>3</sup>
|
2017-09-08 17:03:47 +02:00
|
|
|
</td>
|
2017-09-13 11:15:31 +02:00
|
|
|
|
2017-09-08 17:03:47 +02:00
|
|
|
<td class="cell-padded">
|
|
|
|
$vettore$
|
|
|
|
</td>
|
2017-09-13 11:15:31 +02:00
|
|
|
|
|
|
|
<td class="cell-padded">
|
|
|
|
$spedizione$
|
|
|
|
</td>
|
2017-09-08 17:03:47 +02:00
|
|
|
</tr>
|
2017-09-13 11:15:31 +02:00
|
|
|
</table>';
|
2017-09-08 17:03:47 +02:00
|
|
|
|
2017-09-13 11:15:31 +02:00
|
|
|
// Firme
|
|
|
|
echo '
|
|
|
|
<table class="table-bordered">
|
2017-09-08 17:03:47 +02:00
|
|
|
<tr>
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small" style="width:33%">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Firma conducente', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small" style="width:33%">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Firma vettore', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
|
2017-09-13 11:15:31 +02:00
|
|
|
<th class="small" style="width:33%">
|
2017-09-10 14:35:41 +02:00
|
|
|
'.tr('Firma destinatario', [], ['upper' => true]).'
|
2017-09-08 17:03:47 +02:00
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
2017-09-13 11:15:31 +02:00
|
|
|
<td style="height: 10mm"></td>
|
|
|
|
<td style="height: 10mm"></td>
|
|
|
|
<td style="height: 10mm"></td>
|
2017-09-08 17:03:47 +02:00
|
|
|
</tr>
|
|
|
|
</table>';
|
|
|
|
|
|
|
|
echo '
|
2017-09-21 10:18:08 +02:00
|
|
|
$default_footer$';
|