openstamanager/templates/ddt/footer.php

152 lines
3.5 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'>
2017-09-08 17:03:47 +02:00
".Translator::numberToLocale($imponibile_ddt, 2).' &euro;
</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'>
2017-09-08 17:03:47 +02:00
".Translator::numberToLocale($totale_iva, 2).' &euro;
</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'>
2017-09-08 17:03:47 +02:00
".Translator::numberToLocale($totale_ddt, 2).' &euro;
</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>';
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%">
'.tr('Aspetto beni', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="border-bottom border-right" style="width:33%">
'.tr('Causale trasporto', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="border-bottom" style="width:33%">
'.tr('Porto', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
</tr>
<tr>
<td class="cell-padded border-right">
$aspettobeni$ &nbsp;
</td>
<td class="cell-padded border-right">
$causalet$ &nbsp;
</td>
<td class="cell-padded">
$porto$ &nbsp;
</td>
</tr>
<tr>
<th class="border-bottom border-right">
'.tr('N<sup>o</sup> colli', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="border-bottom border-right">
'.tr('Tipo di spedizione', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="border-bottom">
'.tr('Vettore', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
</tr>
<tr>
<td class="cell-padded border-right">
$n_colli$ &nbsp;
</td>
<td class="cell-padded border-right">
$spedizione$ &nbsp;
</td>
<td class="cell-padded">
$vettore$ &nbsp;
</td>
</tr>
<tr>
<th class="border-bottom border-right">
'.tr('Firma conducente', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="border-bottom border-right">
'.tr('Firma vettore', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
<th class="border-bottom">
'.tr('Firma destinatario', [], ['upper' => true]).'
2017-09-08 17:03:47 +02:00
</th>
</tr>
<tr>
<td class="cell-padded border-right">
&nbsp;<br>&nbsp;
</td>
<td class="cell-padded border-right">
&nbsp;<br>&nbsp;
</td>
<td class="cell-padded">
&nbsp;<br>&nbsp;
</td>
</tr>
</table>';
echo '
$pagination$';