1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-22 21:28:08 +01:00

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

View File

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

View File

@ -4,30 +4,51 @@ echo '
$default_header$
<br>
<div class="text-center" style="height:5mm;">
<b>$tipo_doc$</b>
</div>
<div class="row">
<table class="table table-bordered">
<tr>
<td class="border-full text-center">
<p class="small-bold">'.tr('Nr. documento', [], ['upper' => true]).'</p>
<p>$numero_doc$</p>
</td>
<!-- Dati Ordine -->
<div class="col-xs-6">
<div class="text-center" style="height:5mm;">
<b>$tipo_doc$</b>
</div>
<td class="border-right border-bottom border-top text-center">
<p class="small-bold">'.tr('Data documento', [], ['upper' => true]).'</p>
<p>$data$</p>
</td>
<table class="table table-bordered">
<tr>
<td class="border-full text-center">
<p class="small-bold">'.tr('Nr. documento', [], ['upper' => true]).'</p>
<p>$numero_doc$</p>
</td>
<td class="border-right border-bottom border-top text-center">
<p class="small-bold">'.tr('Pagamanto', [], ['upper' => true]).'</p>
<p>$pagamento$</p>
</td>
<td class="border-right border-bottom border-top text-center">
<p class="small-bold">'.tr('Data documento', [], ['upper' => true]).'</p>
<p>$data$</p>
</td>
<td class="border-right border-bottom border-top center text-center">
<p class="small-bold">'.tr('Foglio', [], ['upper' => true]).'</p>
<p>{PAGENO}/{nb}</p>
</td>
</tr>
</table>';
<td class="border-right border-bottom border-top text-center">
<p class="small-bold">'.tr('Pagamento', [], ['upper' => true]).'</p>
<p>$pagamento$</p>
</td>
<td class="border-right border-bottom border-top center text-center">
<p class="small-bold">'.tr('Foglio', [], ['upper' => true]).'</p>
<p>{PAGENO}/{nb}</p>
</td>
</tr>
</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';
$module_name = 'Preventivi';
$module_name = 'Ordini';
// 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));

View File

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