mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 19:40:44 +01:00
Fix calcolo totale fattura e xml
This commit is contained in:
parent
83d15b852b
commit
670853e9f7
@ -240,7 +240,7 @@ switch (post('op')) {
|
||||
$totale_documento_indicato = abs(floatval($dati_generali['ImportoTotaleDocumento']));
|
||||
|
||||
// Calcolo del totale basato sui DatiRiepilogo
|
||||
if (empty($totale_documento) && empty($dati_generali['ScontoMaggiorazione'])) {
|
||||
if (empty($totale_documento_indicato) && empty($dati_generali['ScontoMaggiorazione'])) {
|
||||
$totale_documento = 0;
|
||||
|
||||
$riepiloghi = $xml['FatturaElettronicaBody']['DatiBeniServizi']['DatiRiepilogo'];
|
||||
@ -264,7 +264,7 @@ switch (post('op')) {
|
||||
'stored' => $totale_documento,
|
||||
'calculated' => $fattura->totale,
|
||||
]);
|
||||
|
||||
|
||||
break;
|
||||
|
||||
// Elenco fatture in stato Bozza per il cliente
|
||||
|
Loading…
x
Reference in New Issue
Block a user