Aggiunta per stampe ordini informazioni cliente / fornitore

This commit is contained in:
Luca 2018-02-09 15:27:43 +01:00
parent ec97471c2e
commit bf66dc4c24
6 changed files with 50 additions and 29 deletions

View File

@ -6,7 +6,7 @@ $default_header$
<br> <br>
<div class="row"> <div class="row">
<!-- Dati Fattura --> <!-- Dati Ddt -->
<div class="col-xs-6"> <div class="col-xs-6">
<div class="text-center" style="height:5mm;"> <div class="text-center" style="height:5mm;">
<b>$tipo_doc$</b> <b>$tipo_doc$</b>
@ -61,7 +61,7 @@ $default_header$
<td class="border-full" style="height:20mm;"> <td class="border-full" style="height:20mm;">
<p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p> <p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p>
<p>$c_ragionesociale$</p> <p>$c_ragionesociale$</p>
<p>$c_indirizzo$ $c_citta_full$</p> <p>$c_indirizzo$<br>$c_citta_full$</p>
</td> </td>
</tr> </tr>

View File

@ -65,7 +65,7 @@ $default_header$
<td colspan=2 class="border-full" style="height:20mm;"> <td colspan=2 class="border-full" style="height:20mm;">
<p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p> <p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p>
<p>$c_ragionesociale$</p> <p>$c_ragionesociale$</p>
<p>$c_indirizzo$ $c_citta_full$</p> <p>$c_indirizzo$<br>$c_citta_full$</p>
</td> </td>
</tr> </tr>

View File

@ -24,7 +24,7 @@ echo "
<th class='text-center' style='width:50%'>".tr('Descrizione', [], ['upper' => true])."</th> <th class='text-center' style='width:50%'>".tr('Descrizione', [], ['upper' => true])."</th>
<th class='text-center' style='width:10%'>".tr('Q.tà', [], ['upper' => true])."</th> <th class='text-center' style='width:10%'>".tr('Q.tà', [], ['upper' => true])."</th>
<th class='text-center' style='width:15%'>".tr('Prezzo unitario', [], ['upper' => true])."</th> <th class='text-center' style='width:15%'>".tr('Prezzo unitario', [], ['upper' => true])."</th>
<th class='text-center' style='width:15%'>".tr('Imponibile', [], ['upper' => true])."</th> <th class='text-center' style='width:15%'>".tr('Importo', [], ['upper' => true])."</th>
<th class='text-center' style='width:10%'>".tr('IVA', [], ['upper' => true]).' (%)</th> <th class='text-center' style='width:10%'>".tr('IVA', [], ['upper' => true]).' (%)</th>
</tr> </tr>
</thead> </thead>

View File

@ -4,6 +4,10 @@ echo '
$default_header$ $default_header$
<br> <br>
<div class="row">
<!-- Dati Ordine -->
<div class="col-xs-6">
<div class="text-center" style="height:5mm;"> <div class="text-center" style="height:5mm;">
<b>$tipo_doc$</b> <b>$tipo_doc$</b>
</div> </div>
@ -21,7 +25,7 @@ $default_header$
</td> </td>
<td class="border-right border-bottom border-top text-center"> <td class="border-right border-bottom border-top text-center">
<p class="small-bold">'.tr('Pagamanto', [], ['upper' => true]).'</p> <p class="small-bold">'.tr('Pagamento', [], ['upper' => true]).'</p>
<p>$pagamento$</p> <p>$pagamento$</p>
</td> </td>
@ -30,4 +34,21 @@ $default_header$
<p>{PAGENO}/{nb}</p> <p>{PAGENO}/{nb}</p>
</td> </td>
</tr> </tr>
</table>'; </table>
</div>
<!-- Dati Cliente/Fornitore -->
<div class="col-xs-5 col-xs-offset-1">
<table class="table" style="width:100%;margin-top:5mm;">
<tr>
<td class="border-full" style="height:20mm;">
<p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p>
<p>$c_ragionesociale$</p>
<p>$c_indirizzo$<br> $c_citta_full$</p>
</td>
</tr>
</table>
</div>
</div>';

View File

@ -2,7 +2,7 @@
include_once __DIR__.'/../../core.php'; include_once __DIR__.'/../../core.php';
$module_name = 'Preventivi'; $module_name = 'Ordini';
// Lettura info fattura // Lettura info fattura
$records = $dbo->fetchArray('SELECT *, (SELECT descrizione FROM or_tipiordine WHERE or_tipiordine.id=idtipoordine) AS tipo_doc, (SELECT descrizione FROM co_pagamenti WHERE id=idpagamento) AS tipo_pagamento FROM or_ordini WHERE id='.prepare($idordine)); $records = $dbo->fetchArray('SELECT *, (SELECT descrizione FROM or_tipiordine WHERE or_tipiordine.id=idtipoordine) AS tipo_doc, (SELECT descrizione FROM co_pagamenti WHERE id=idpagamento) AS tipo_pagamento FROM or_ordini WHERE id='.prepare($idordine));

View File

@ -1,5 +1,5 @@
<?php <?php
return [ return [
'header-height' => 55, 'header-height' => 65,
]; ];