mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-13 00:46:34 +01:00
6510807bdd
Miglioramento della presentazione del progetto e delle informazioni relative. Aggiunti messaggi per segnalare il collegamento dei documenti tra di loro ed evitare cancellazioni involontarie. Unificato il sistema di identificazione dei numeri (ora abbreviati in "num.").
171 lines
3.7 KiB
PHP
171 lines
3.7 KiB
PHP
<?php
|
|
|
|
// TABELLA PRINCIPALE
|
|
echo '
|
|
<table class="table-bordered">';
|
|
|
|
if ($mostra_prezzi) {
|
|
// Riga 1
|
|
echo "
|
|
<tr>
|
|
<td rowspan='7'>
|
|
<p class='small-bold'>".tr('Note', [], ['upper' => true]).'</p>
|
|
<p>'.nl2br($records[0]['note'])."</p>
|
|
</td>
|
|
<td style='width:33mm;'>
|
|
<p class='small-bold'>".tr('Totale imponibile', [], ['upper' => true]).'</p>
|
|
</td>
|
|
</tr>';
|
|
|
|
// Dati riga 1
|
|
echo "
|
|
<tr>
|
|
<td class='cell-padded text-right'>
|
|
".Translator::numberToLocale($imponibile, 2).' €
|
|
</td>
|
|
</tr>';
|
|
|
|
// Riga 2
|
|
echo "
|
|
<tr>
|
|
<td style='width:33mm;'>
|
|
<p class='small-bold'>".tr('Totale imposte', [], ['upper' => true])."</p>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='cell-padded text-right'>
|
|
".Translator::numberToLocale($iva, 2).' €
|
|
</td>
|
|
</tr>';
|
|
|
|
// Riga 3
|
|
echo "
|
|
<tr>
|
|
<td>
|
|
<p class='small-bold'>".tr('Totale documento', [], ['upper' => true])."</p>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class='cell-padded text-right'>
|
|
".Translator::numberToLocale($totale, 2).' €
|
|
</td>
|
|
</tr>';
|
|
} else {
|
|
// Riga 1
|
|
echo "
|
|
<tr>
|
|
<td style='height:40mm;'>
|
|
<p class='small-bold'>".tr('Note', [], ['upper' => true]).'</p>
|
|
'.nl2br($records[0]['note']).'
|
|
</td>
|
|
</tr>';
|
|
}
|
|
|
|
echo '
|
|
</table>';
|
|
|
|
// Informazioni aggiuntive
|
|
echo '
|
|
<table class="table-bordered">
|
|
<tr>
|
|
<th class="small" class style="width:25%">
|
|
'.tr('Aspetto beni', [], ['upper' => true]).'
|
|
</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]).'
|
|
</th>
|
|
|
|
<th class="small" style="width:25%">
|
|
'.tr('Porto', [], ['upper' => true]).'
|
|
</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="cell-padded">
|
|
$aspettobeni$
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
$n_colli$
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
$causalet$
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
$porto$
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th class="small">
|
|
'.tr('Peso lordo', [], ['upper' => true]).'
|
|
</th>
|
|
|
|
<th class="small">
|
|
'.tr('Volume', [], ['upper' => true]).'
|
|
</th>
|
|
|
|
<th class="small">
|
|
'.tr('Vettore', [], ['upper' => true]).'
|
|
</th>
|
|
|
|
<th class="small">
|
|
'.tr('Tipo di spedizione', [], ['upper' => true]).'
|
|
</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="cell-padded">
|
|
'.(!empty($peso_lordo) ? Translator::numberToLocale($peso_lordo) : '').'
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
'.(!empty($volume) ? Translator::numberToLocale($volume) : '').'
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
$vettore$
|
|
</td>
|
|
|
|
<td class="cell-padded">
|
|
$spedizione$
|
|
</td>
|
|
</tr>
|
|
</table>';
|
|
|
|
// Firme
|
|
echo '
|
|
<table class="table-bordered">
|
|
<tr>
|
|
<th class="small" style="width:33%">
|
|
'.tr('Firma conducente', [], ['upper' => true]).'
|
|
</th>
|
|
|
|
<th class="small" style="width:33%">
|
|
'.tr('Firma vettore', [], ['upper' => true]).'
|
|
</th>
|
|
|
|
<th class="small" style="width:33%">
|
|
'.tr('Firma destinatario', [], ['upper' => true]).'
|
|
</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="height: 10mm"></td>
|
|
<td style="height: 10mm"></td>
|
|
<td style="height: 10mm"></td>
|
|
</tr>
|
|
</table>';
|
|
|
|
echo '
|
|
$pagination$';
|