This commit is contained in:
Luca 2018-06-29 11:45:45 +02:00
parent a4aa26f46e
commit 684d59eeae
1 changed files with 7 additions and 7 deletions

View File

@ -434,10 +434,10 @@ if ($options['pricing']) {
<b>'.Translator::numberToLocale($costi_intervento['totale_addebito']).' &euro;</b> <b>'.Translator::numberToLocale($costi_intervento['totale_addebito']).' &euro;</b>
</th> </th>
</tr>'; </tr>';
$sconto_addebito = $costi_intervento['totale_addebito'] - $costi_intervento['totale_scontato']; //$sconto_addebito = $costi_intervento['totale_addebito'] - $costi_intervento['totale_scontato'];
$totale_sconto = $costi_intervento['totale_addebito'] - $costi_intervento['totale_scontato'];
$totale_sconto = $costi_intervento['sconto_globale'] + $sconto_addebito; //$totale_sconto = $costi_intervento['sconto_globale'] + $sconto_addebito;
// Eventuale sconto totale // Eventuale sconto totale
if (!empty($totale_sconto)) { if (!empty($totale_sconto)) {
@ -460,7 +460,7 @@ if ($options['pricing']) {
</td> </td>
<th class="text-center"> <th class="text-center">
<b>'.Translator::numberToLocale($costi_intervento['totale']).' &euro;</b> <b>'.Translator::numberToLocale($costi_intervento['totale_scontato']).' &euro;</b>
</th> </th>
</tr>'; </tr>';
} }
@ -469,7 +469,7 @@ if ($options['pricing']) {
$rs1 = $dbo->fetchArray('SELECT percentuale FROM co_iva WHERE id='.prepare(get_var('Iva predefinita'))); $rs1 = $dbo->fetchArray('SELECT percentuale FROM co_iva WHERE id='.prepare(get_var('Iva predefinita')));
$percentuale_iva = $rs1[0]['percentuale']; $percentuale_iva = $rs1[0]['percentuale'];
$iva = ($costi_intervento['totale'] / 100 * $percentuale_iva); $iva = ($costi_intervento['totale_scontato'] / 100 * $percentuale_iva);
// IVA // IVA
// Totale intervento // Totale intervento
@ -486,7 +486,7 @@ if ($options['pricing']) {
</th> </th>
</tr>'; </tr>';
$totale = sum($costi_intervento['totale'], $iva); $totale = sum($costi_intervento['totale_scontato'], $iva);
// TOTALE INTERVENTO // TOTALE INTERVENTO
echo ' echo '