1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Aggiunta stampa ddt in entrata

This commit is contained in:
MatteoPistorello
2023-05-18 16:11:27 +02:00
parent a93852e71e
commit 0147caa372
4 changed files with 28 additions and 23 deletions

View File

@@ -214,28 +214,30 @@ echo '
</table>';
// Firme
echo '
<table class="table-bordered">
<tr>
<th class="small" style="width:33%">
'.tr('Firma conducente', [], ['upper' => true]).'
</th>
if ($documento->direzione == 'entrata') {
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 vettore', [], ['upper' => true]).'
</th>
<th class="small" style="width:33%">
'.tr('Firma destinatario', [], ['upper' => true]).'
</th>
</tr>
<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>';
<tr>
<td style="height: 10mm"></td>
<td style="height: 10mm"></td>
<td style="height: 10mm"></td>
</tr>
</table>';
}
if (empty($options['last-page-footer'])) {
echo '$default_footer$';

View File

@@ -41,7 +41,7 @@ $default_header$
</td>
<td class="border-right border-bottom border-top text-center">
<p class="small-bold">'.tr('Cliente', [], ['upper' => true]).'</p>
<p class="small-bold">'.tr('_TYPE_', ['_TYPE_' => $documento->direzione == 'uscita' ? 'Fornitore' : 'Cliente'], ['upper' => true]).'</p>
<p>$c_codice$</p>
</td>

View File

@@ -36,7 +36,7 @@ $vettore = $dbo->fetchOne('SELECT ragione_sociale FROM an_anagrafiche WHERE idan
$tipo_doc = $documento->tipo->descrizione;
if (empty($documento['numero_esterno'])) {
$numero = 'pro-forma '.$numero;
$numero = 'pro-forma '.$documento['numero'];
$tipo_doc = tr('DDT pro-forma', [], ['upper' => true]);
} else {
$numero = !empty($documento['numero_esterno']) ? $documento['numero_esterno'] : $documento['numero'];