Ciao a tutti, al momento dell'esportazione fattura....
failed validating <Element DatiGeneraliDocumento at 0x7fe0142d8940> with XsdGroup(model='sequence', occurs=[1, 1]):
Reason: Unexpected child with tag 'ImportoTotaleDocumento' at position 6.
Schema:
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="DatiGeneraliDocumentoType">
<xs:sequence>
<xs:element name="TipoDocumento" type="TipoDocumentoType" />
<xs:element name="Divisa" type="DivisaType" />
<xs:element name="Data" type="DataFatturaType" />
<xs:element name="Numero" type="String20Type" />
<xs:element name="DatiRitenuta" type="DatiRitenutaType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="DatiBollo" type="DatiBolloType" minOccurs="0" />
<xs:element name="DatiCassaPrevidenziale" type="DatiCassaPrevidenzialeType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="ScontoMaggiorazione" type="ScontoMaggiorazioneType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="ImportoTotaleDocumento" type="Amount2DecimalType" minOccurs="0" />
<xs:element name="Arrotondamento" type="Amount2DecimalType" minOccurs="0" />
<xs:element name="Causale" type="String200LatinType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="Art73" type="Art73Type" minOccurs="0" />
</xs:sequence>
</xs:complexType>
Instance (line 165):
<DatiGeneraliDocumento xmlns:ns1="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2"><TipoDocumento>TD01</TipoDocumento><Divisa>EUR</Divisa><Data>2022-09-30</Data><Numero>FATT/2022/09/0357</Numero><ImportoTotaleDocumento>13909.50</ImportoTotaleDocumento><ImportoTotaleDocumento>15135.38</ImportoTotaleDocumento><Causale>Termini</Causale></DatiGeneraliDocumento>
Path: /ns1:FatturaElettronica/FatturaElettronicaBody/DatiGenerali/DatiGeneraliDocumento
Qualche suggerimento?
Grazie mille in anticipo