mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-05 18:27:32 +01:00
Controllo totale FE basato su Riepilogo IVA
This commit is contained in:
parent
869416e401
commit
6c6b657101
@ -187,8 +187,8 @@ switch (post('op')) {
|
|||||||
$xml = \Util\XML::read($fattura->getXML());
|
$xml = \Util\XML::read($fattura->getXML());
|
||||||
|
|
||||||
// Totale basato sul campo ImportoTotaleDocumento
|
// Totale basato sul campo ImportoTotaleDocumento
|
||||||
$dati_generali = $xml['FatturaElettronicaBody']['DatiGenerali']['DatiGeneraliDocumento'];
|
//$dati_generali = $xml['FatturaElettronicaBody']['DatiGenerali']['DatiGeneraliDocumento'];
|
||||||
$totale_documento = abs(floatval($dati_generali['ImportoTotaleDocumento']));
|
//$totale_documento = abs(floatval($dati_generali['ImportoTotaleDocumento']));
|
||||||
|
|
||||||
// Calcolo del totale basato sui DatiRiepilogo
|
// Calcolo del totale basato sui DatiRiepilogo
|
||||||
if (empty($totale_documento)) {
|
if (empty($totale_documento)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user