mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-21 14:00:53 +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'];
|
$sconto_addebito = $costi_intervento['totale_addebito'] - $costi_intervento['totale_scontato'];
|
||||||
|
|
||||||
|
$totale_sconto = $costi_intervento['sconto_globale'] + $sconto_addebito;
|
||||||
|
|
||||||
// Eventuale sconto totale
|
// Eventuale sconto totale
|
||||||
if (!empty($sconto_addebito)) {
|
if (!empty($totale_sconto)) {
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4" class="text-right">
|
<td colspan="4" class="text-right">
|
||||||
@ -459,35 +461,21 @@ if ($mostra_prezzi) {
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
<b>-'.Translator::numberToLocale($sconto_addebito).' €</b>
|
<b>-'.Translator::numberToLocale($totale_sconto).' €</b>
|
||||||
</th>
|
</th>
|
||||||
</tr>';
|
</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
|
// Imponibile scontato
|
||||||
echo '
|
echo '
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4" class="text-right">
|
<td colspan="4" class="text-right">
|
||||||
<b>'.tr('Imponibile scontato', [], ['upper' => true]).':</b>
|
<b>'.tr('Imponibile scontato', [], ['upper' => true]).':</b>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<th class="text-center">
|
<th class="text-center">
|
||||||
<b>'.Translator::numberToLocale($costi_intervento['totale']).' €</b>
|
<b>'.Translator::numberToLocale($costi_intervento['totale']).' €</b>
|
||||||
</th>
|
</th>
|
||||||
</tr>';
|
</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Leggo iva da applicare
|
// Leggo iva da applicare
|
||||||
|
Loading…
x
Reference in New Issue
Block a user