mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Miglioria grafica stampa preventivo
This commit is contained in:
parent
8870c288f1
commit
41316a5557
@ -100,7 +100,7 @@ echo '
|
|||||||
if (!empty($destinazione)) {
|
if (!empty($destinazione)) {
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2 class="border-full" style="height:16mm;">
|
<td colspan=2 style="height:16mm;">
|
||||||
<p class="small-bold text-muted">'.tr('Destinazione diversa', [], ['upper' => true]).'</p>
|
<p class="small-bold text-muted">'.tr('Destinazione diversa', [], ['upper' => true]).'</p>
|
||||||
<small>'.$destinazione.'</small>
|
<small>'.$destinazione.'</small>
|
||||||
</td>
|
</td>
|
||||||
|
@ -76,36 +76,16 @@ echo '
|
|||||||
'_DATE_' => Translator::dateToLocale($documento['data_bozza']),
|
'_DATE_' => Translator::dateToLocale($documento['data_bozza']),
|
||||||
], ['upper' => true]).'</b>
|
], ['upper' => true]).'</b>
|
||||||
</div>
|
</div>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
<table class="table">
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" style="height:10mm;padding-top:2mm;">
|
|
||||||
<p class="small-bold">'.tr('Pagamento', [], ['upper' => true]).'</p>
|
|
||||||
<p>'.$pagamento['descrizione'].'</p>
|
|
||||||
</td>
|
|
||||||
<td colspan="2" style="height:10mm;padding-top:2mm;">
|
|
||||||
<p class="small-bold">'.tr('Banca di appoggio', [], ['upper' => true]).'</p>
|
|
||||||
<p><small>'.$banca['nome'].'</small></p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" style="height:10mm;padding-top:2mm;white-space: nowrap;">
|
|
||||||
<p class="small-bold">'.tr('IBAN').'</p>
|
|
||||||
<p>'.$banca['iban'].'</p>
|
|
||||||
</td>
|
|
||||||
<td colspan="2" style="height:10mm;padding-top:2mm;">
|
|
||||||
<p class="small-bold">'.tr('BIC').'</p>
|
|
||||||
<p>'.$banca['bic'].'</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-6" style="margin-left: 10px">
|
<div class="col-xs-6">
|
||||||
<table class="table" style="width:100%;margin-top:5mm;">
|
<table class="table border-bottom">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2 class="border-full" style="height:16mm;">
|
<td colspan=2 style="height:16mm;">
|
||||||
<p class="small-bold">'.tr('Spett.le', [], ['upper' => true]).'</p>
|
<p class="small-bold text-muted ">'.tr('Spett.le', [], ['upper' => true]).'</p>
|
||||||
<p>$c_ragionesociale$</p>
|
<p>$c_ragionesociale$</p>
|
||||||
<p>$c_indirizzo$</p>
|
<p>$c_indirizzo$</p>
|
||||||
<p>$c_citta_full$</p>
|
<p>$c_citta_full$</p>
|
||||||
@ -113,27 +93,28 @@ echo '
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="border-bottom border-left">
|
<td class="border-bottom">
|
||||||
<p class="small-bold">'.tr('Partita IVA', [], ['upper' => true]).'</p>
|
<p class="small-bold text-muted">'.tr('Partita IVA', [], ['upper' => true]).'</p>
|
||||||
</td>
|
</td>
|
||||||
<td class="border-right border-bottom text-right">
|
<td class="border-bottom text-right">
|
||||||
<small>$c_piva$</small>
|
<small>$c_piva$</small>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="border-bottom border-left">
|
<td class="border-bottom">
|
||||||
<p class="small-bold">'.tr('Codice fiscale', [], ['upper' => true]).'</p>
|
<p class="small-bold text-muted">'.tr('Codice fiscale', [], ['upper' => true]).'</p>
|
||||||
</td>
|
</td>
|
||||||
<td class="border-right border-bottom text-right">
|
<td class="border-bottom text-right">
|
||||||
<small>$c_codicefiscale$</small>
|
<small>$c_codicefiscale$</small>
|
||||||
</td>
|
</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
|
|
||||||
if (!empty($destinazione)) {
|
if (!empty($destinazione)) {
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="border-full" style="height:16mm;">
|
<td colspan=2 class="border-full" style="height:16mm;">
|
||||||
<p class="small-bold">'.tr('Destinazione diversa', [], ['upper' => true]).'</p>
|
<p class="small-bold text-muted">'.tr('Destinazione diversa', [], ['upper' => true]).'</p>
|
||||||
<small>'.$destinazione.'</small>
|
<small>'.$destinazione.'</small>
|
||||||
</td>
|
</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
@ -171,7 +152,7 @@ if ($options['pricing']) {
|
|||||||
<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>';
|
||||||
if (!$options['no-iva']) {
|
if (!$options['no-iva']) {
|
||||||
echo "
|
echo "
|
||||||
<th class='text-center' style='width:10%'>".tr('IVA', [], ['upper' => true]).' (%)</th>';
|
<th class='text-center' style='width:10%'>".tr('IVA', [], ['upper' => true]).' (%)</th>';
|
||||||
}
|
}
|
||||||
echo "
|
echo "
|
||||||
<th class='text-center' style='width:15%'>".($options['hide-total'] ? tr('Importo ivato', [], ['upper' => true]) : tr('Importo', [], ['upper' => true])).'</th>';
|
<th class='text-center' style='width:15%'>".($options['hide-total'] ? tr('Importo ivato', [], ['upper' => true]) : tr('Importo', [], ['upper' => true])).'</th>';
|
||||||
@ -365,7 +346,7 @@ if (($options['pricing'] && !isset($options['hide-total'])) || $options['show-on
|
|||||||
// Totale imponibile
|
// Totale imponibile
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($options['show-only-total'] ? (($has_image) ? 3 : 2) : 4).'" class="text-right border-top">
|
<td colspan="'.($options['show-only-total'] ? (($has_image) ? 3 : 2) : 4).'" class="text-right text-muted">
|
||||||
<b>'.tr('Imponibile', [], ['upper' => true]).':</b>
|
<b>'.tr('Imponibile', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -378,7 +359,7 @@ if (($options['pricing'] && !isset($options['hide-total'])) || $options['show-on
|
|||||||
if ($show_sconto) {
|
if ($show_sconto) {
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($options['show-only-total'] ? 2 : 4).'" class="text-right border-top">
|
<td colspan="'.($options['show-only-total'] ? 2 : 4).'" class="text-right text-muted">
|
||||||
<b>'.tr('Sconto', [], ['upper' => true]).':</b>
|
<b>'.tr('Sconto', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -390,7 +371,7 @@ if (($options['pricing'] && !isset($options['hide-total'])) || $options['show-on
|
|||||||
// Totale imponibile
|
// Totale imponibile
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($options['show-only-total'] ? 2 : 4).'" class="text-right border-top">
|
<td colspan="'.($options['show-only-total'] ? 2 : 4).'" class="text-right text-muted">
|
||||||
<b>'.tr('Totale imponibile', [], ['upper' => true]).':</b>
|
<b>'.tr('Totale imponibile', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -404,7 +385,7 @@ if (($options['pricing'] && !isset($options['hide-total'])) || $options['show-on
|
|||||||
if (!$options['no-iva']) {
|
if (!$options['no-iva']) {
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($options['show-only-total'] ? 2 : 4).'" class="text-right border-top">
|
<td colspan="'.($options['show-only-total'] ? 2 : 4).'" class="text-right text-muted">
|
||||||
<b>'.tr('Totale IVA', [], ['upper' => true]).':</b>
|
<b>'.tr('Totale IVA', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -416,7 +397,7 @@ if (($options['pricing'] && !isset($options['hide-total'])) || $options['show-on
|
|||||||
// TOTALE
|
// TOTALE
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="'.($options['show-only-total'] ? 2 : 4).'" class="text-right border-top">
|
<td colspan="'.($options['show-only-total'] ? 2 : 4).'" class="text-right text-muted">
|
||||||
<b>'.tr('Totale documento', [], ['upper' => true]).':</b>
|
<b>'.tr('Totale documento', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@ -465,29 +446,30 @@ if ($options['no-iva']) {
|
|||||||
// CONDIZIONI GENERALI DI FORNITURA
|
// CONDIZIONI GENERALI DI FORNITURA
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<table class="table table-bordered">
|
|
||||||
|
<table class="table table-striped">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2" class="text-center" style="font-size:13pt;">
|
<th colspan="6" class="text-left text-muted">
|
||||||
'.tr('Condizioni generali di fornitura', [], ['upper' => true]).'
|
'.tr('Condizioni generali di fornitura', [], ['upper' => true]).'
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width:25%">
|
<td class="text-muted small-bold border-bottom" style="width:25%">
|
||||||
'.tr('Pagamento', [], ['upper' => true]).'
|
'.tr('Pagamento', [], ['upper' => true]).'
|
||||||
</th>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td class="border-bottom">
|
||||||
'.$pagamento['descrizione'].'
|
'.$pagamento->getTranslation('title').'
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<td class="text-muted border-bottom small-bold">
|
||||||
'.tr('Validità offerta', [], ['upper' => true]).'
|
'.tr('Validità offerta', [], ['upper' => true]).'
|
||||||
</th>
|
</td>
|
||||||
|
|
||||||
<td>';
|
<td class="border-bottom">';
|
||||||
|
|
||||||
if (!empty($documento->validita) && !empty($documento->tipo_validita)) {
|
if (!empty($documento->validita) && !empty($documento->tipo_validita)) {
|
||||||
$intervallo = CarbonInterval::make($documento->validita.' '.$documento->tipo_validita);
|
$intervallo = CarbonInterval::make($documento->validita.' '.$documento->tipo_validita);
|
||||||
@ -506,34 +488,64 @@ echo '
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<td class="text-muted border-bottom small-bold">
|
||||||
'.tr('Tempi consegna', [], ['upper' => true]).'
|
'.tr('Tempi consegna', [], ['upper' => true]).'
|
||||||
</th>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td class="border-bottom">
|
||||||
'.$documento['tempi_consegna'].'
|
'.$documento['tempi_consegna'].'
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<td class="text-muted border-bottom small-bold">
|
||||||
'.tr('Esclusioni', [], ['upper' => true]).'
|
'.tr('Esclusioni', [], ['upper' => true]).'
|
||||||
</th>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td class="border-bottom">
|
||||||
'.nl2br($documento['esclusioni']).'
|
'.nl2br($documento['esclusioni']).'
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<td class="text-muted border-bottom small-bold">
|
||||||
'.tr('Garanzia', [], ['upper' => true]).'
|
'.tr('Garanzia', [], ['upper' => true]).'
|
||||||
</th>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td class="border-bottom">
|
||||||
'.nl2br($documento['garanzia']).'
|
'.nl2br($documento['garanzia']).'
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
';
|
||||||
|
if ($banca) {
|
||||||
|
echo'
|
||||||
|
<tr>
|
||||||
|
<td class="text-muted border-bottom small-bold"></td>
|
||||||
|
<td class="border-bottom">
|
||||||
|
<p><small>'.$banca['nome'].'</small></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="text-muted border-bottom small-bold">
|
||||||
|
'.tr('IBAN', [], ['upper' => true]).'
|
||||||
|
</td>
|
||||||
|
<td class="border-bottom">
|
||||||
|
<p>'.$banca['iban'].'</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="text-muted border-bottom small-bold">
|
||||||
|
'.tr('BIC', [], ['upper' => true]).'
|
||||||
|
</td>
|
||||||
|
<td class="border-bottom">
|
||||||
|
<p>'.$banca['bic'].'</p>
|
||||||
|
</td>
|
||||||
|
</tr>';
|
||||||
|
}
|
||||||
|
echo'
|
||||||
</table>';
|
</table>';
|
||||||
|
|
||||||
// Conclusione
|
// Conclusione
|
||||||
|
Loading…
x
Reference in New Issue
Block a user