mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Miglioramento stampa #110
This commit is contained in:
parent
b03e4fc354
commit
08ddb47408
@ -450,8 +450,10 @@ if ($mostra_prezzi) {
|
||||
|
||||
$sconto_addebito = $costi_intervento['totale_addebito'] - $costi_intervento['totale_scontato'];
|
||||
|
||||
$totale_sconto = $costi_intervento['sconto_globale'] + $sconto_addebito;
|
||||
|
||||
// Eventuale sconto totale
|
||||
if (!empty($sconto_addebito)) {
|
||||
if (!empty($totale_sconto)) {
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="4" class="text-right">
|
||||
@ -459,35 +461,21 @@ if ($mostra_prezzi) {
|
||||
</td>
|
||||
|
||||
<th class="text-center">
|
||||
<b>-'.Translator::numberToLocale($sconto_addebito).' €</b>
|
||||
<b>-'.Translator::numberToLocale($totale_sconto).' €</b>
|
||||
</th>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
// Eventuale sconto incondizionato
|
||||
if (!empty($costi_intervento['sconto_globale'])) {
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="4" class="text-right">
|
||||
<b>'.tr('Sconto incondizionato', [], ['upper' => true]).':</b>
|
||||
</td>
|
||||
|
||||
<th class="text-center">
|
||||
<b>-'.Translator::numberToLocale($costi_intervento['sconto_globale']).' €</b>
|
||||
</th>
|
||||
</tr>';
|
||||
|
||||
// Imponibile scontato
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="4" class="text-right">
|
||||
<b>'.tr('Imponibile scontato', [], ['upper' => true]).':</b>
|
||||
</td>
|
||||
<tr>
|
||||
<td colspan="4" class="text-right">
|
||||
<b>'.tr('Imponibile scontato', [], ['upper' => true]).':</b>
|
||||
</td>
|
||||
|
||||
<th class="text-center">
|
||||
<b>'.Translator::numberToLocale($costi_intervento['totale']).' €</b>
|
||||
</th>
|
||||
</tr>';
|
||||
<th class="text-center">
|
||||
<b>'.Translator::numberToLocale($costi_intervento['totale']).' €</b>
|
||||
</th>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
// Leggo iva da applicare
|
||||
|
Loading…
x
Reference in New Issue
Block a user