mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Correzioni importi ivati in stampa interventi
This commit is contained in:
parent
5f18f7b65e
commit
deace5d010
@ -145,7 +145,7 @@ if (!$righe->isEmpty()) {
|
||||
</th>
|
||||
|
||||
<th style="font-size:8pt;width:20%" class="text-center">
|
||||
<b>'.tr('Imponibile').'</b>
|
||||
<b>'.tr('Importo').'</b>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -188,7 +188,7 @@ if (!$righe->isEmpty()) {
|
||||
// Prezzo unitario
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.($options['pricing'] ? moneyFormat($riga->prezzo_unitario) : '-');
|
||||
'.($options['pricing'] ? moneyFormat($riga->prezzo_unitario_corrente) : '-');
|
||||
|
||||
if ($options['pricing'] && $riga->sconto > 0) {
|
||||
$text = discountInfo($riga, false);
|
||||
@ -203,7 +203,7 @@ if (!$righe->isEmpty()) {
|
||||
// Prezzo totale
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.($options['pricing'] ? Translator::numberToLocale($riga->totale_imponibile) : '-').'
|
||||
'.($options['pricing'] ? Translator::numberToLocale($riga->importo) : '-').'
|
||||
</td>
|
||||
</tr>';
|
||||
}
|
||||
@ -220,7 +220,7 @@ if (!$righe->isEmpty()) {
|
||||
</td>
|
||||
|
||||
<th class="text-center">
|
||||
<b>'.moneyFormat($righe->sum('totale_imponibile'), 2).'</b>
|
||||
<b>'.moneyFormat($righe->sum('importo'), 2).'</b>
|
||||
</th>
|
||||
</tr>';
|
||||
}
|
||||
@ -279,19 +279,19 @@ foreach ($sessioni as $i => $sessione) {
|
||||
// Data
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.Translator::dateToLocale($sessione['orario_inizio'], '-').'
|
||||
'.Translator::dateToLocale($sessione['orario_inizio']).'
|
||||
</td>';
|
||||
|
||||
// Ora inizio
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.Translator::timeToLocale($sessione['orario_inizio'], '-').'
|
||||
'.Translator::timeToLocale($sessione['orario_inizio']).'
|
||||
</td>';
|
||||
|
||||
// Ora fine
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.Translator::timeToLocale($sessione['orario_fine'], '-').'
|
||||
'.Translator::timeToLocale($sessione['orario_fine']).'
|
||||
</td>';
|
||||
|
||||
// Spazio aggiuntivo
|
||||
@ -375,8 +375,22 @@ $netto_a_pagare = abs($documento->netto);
|
||||
|
||||
$show_sconto = $sconto > 0;
|
||||
|
||||
$incorpora_iva = setting('Utilizza prezzi di vendita comprensivi di IVA');
|
||||
|
||||
// TOTALE COSTI FINALI
|
||||
if ($options['pricing']) {
|
||||
if ($incorpora_iva) {
|
||||
// TOTALE INTERVENTO
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="4" class="text-right">
|
||||
<b>'.tr('Totale intervento', [], ['upper' => true]).':</b>
|
||||
</td>
|
||||
<th class="text-center">
|
||||
<b>'.moneyFormat($totale, 2).'</b>
|
||||
</th>
|
||||
</tr>';
|
||||
} else {
|
||||
// Totale imponibile
|
||||
echo '
|
||||
<tr>
|
||||
@ -439,6 +453,7 @@ if ($options['pricing']) {
|
||||
</th>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
echo '
|
||||
</table>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user