openstamanager/templates/ddt/footer.php

171 lines
3.8 KiB
PHP
Raw Normal View History

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'>
<p class='small-bold'>".tr('Note', [], ['upper' => true]).'</p>
<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;'>
<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'>
".Translator::numberToLocale($imponibile).' &euro;
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;'>
<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'>
".Translator::numberToLocale($iva).' &euro;
2017-09-08 17:03:47 +02:00
</td>
</tr>';
// Riga 3
echo "
<tr>
2017-09-08 18:19:39 +02:00
<td>
<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'>
".Translator::numberToLocale($totale).' &euro;
2017-09-08 17:03:47 +02:00
</td>
</tr>';
} else {
// Riga 1
echo "
<tr>
<td style='height:40mm;'>
<p class='small-bold'>".tr('Note', [], ['upper' => true]).'</p>
'.nl2br($records[0]['note']).'
2017-09-08 17:03:47 +02:00
</td>
</tr>';
}
echo '
</table>';
// 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>
<th class="small" class style="width:25%">
'.tr('Aspetto beni', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="small" class style="width:20%">
'.tr('Num. colli', [], ['upper' => true]).'
</th>
<th class="small" style="width:30%">
'.tr('Causale trasporto', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="small" style="width:25%">
'.tr('Porto', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
</tr>
<tr>
<td class="cell-padded">
2017-09-08 17:03:47 +02:00
$aspettobeni$ &nbsp;
</td>
<td class="cell-padded">
$n_colli$ &nbsp;
</td>
<td class="cell-padded">
2017-09-08 17:03:47 +02:00
$causalet$ &nbsp;
</td>
2017-09-08 17:03:47 +02:00
<td class="cell-padded">
$porto$ &nbsp;
</td>
</tr>
<tr>
<th class="small">
'.tr('Peso lordo', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="small">
'.tr('Volume', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="small">
'.tr('Vettore', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="small">
'.tr('Tipo di spedizione', [], ['upper' => true]).'
</th>
2017-09-08 17:03:47 +02:00
</tr>
<tr>
<td class="cell-padded">
2017-09-18 18:34:13 +02:00
'.(!empty($peso_lordo) ? Translator::numberToLocale($peso_lordo) : '').'&nbsp;KG
2017-09-08 17:03:47 +02:00
</td>
<td class="cell-padded">
2017-09-18 18:34:13 +02:00
'.(!empty($volume) ? Translator::numberToLocale($volume) : '').'&nbsp;M<sup>3</sup>
2017-09-08 17:03:47 +02:00
</td>
2017-09-08 17:03:47 +02:00
<td class="cell-padded">
$vettore$ &nbsp;
</td>
<td class="cell-padded">
$spedizione$ &nbsp;
</td>
2017-09-08 17:03:47 +02:00
</tr>
</table>';
2017-09-08 17:03:47 +02:00
// Firme
echo '
<table class="table-bordered">
2017-09-08 17:03:47 +02:00
<tr>
<th class="small" style="width:33%">
'.tr('Firma conducente', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="small" style="width:33%">
'.tr('Firma vettore', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="small" style="width:33%">
'.tr('Firma destinatario', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
</tr>
<tr>
<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 '
$pagination$';