forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_it_fatturapa_out: assign lineRef to docs
FPA related documents that are associated to lines need a lineRef, this is computed by the template by looping over the lines. This commit reverts a change made during the migration from 14.0 to 16.0. (0274a08)
- Loading branch information
Showing
3 changed files
with
192 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
l10n_it_fatturapa_out/tests/data/IT06363391001_00017.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ns1:FatturaElettronica xmlns:ns1="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2" versione="FPA12"> | ||
<FatturaElettronicaHeader> | ||
<DatiTrasmissione> | ||
<IdTrasmittente> | ||
<IdPaese>IT</IdPaese> | ||
<IdCodice>06363391001</IdCodice> | ||
</IdTrasmittente> | ||
<ProgressivoInvio>00017</ProgressivoInvio> | ||
<FormatoTrasmissione>FPA12</FormatoTrasmissione> | ||
<CodiceDestinatario>UFPQ1O</CodiceDestinatario> | ||
<ContattiTrasmittente> | ||
<Telefono>06543534343</Telefono> | ||
<Email>[email protected]</Email> | ||
</ContattiTrasmittente> | ||
</DatiTrasmissione> | ||
<CedentePrestatore> | ||
<DatiAnagrafici> | ||
<IdFiscaleIVA> | ||
<IdPaese>IT</IdPaese> | ||
<IdCodice>06363391001</IdCodice> | ||
</IdFiscaleIVA> | ||
<Anagrafica> | ||
<Denominazione>YourCompany</Denominazione> | ||
</Anagrafica> | ||
<RegimeFiscale>RF01</RegimeFiscale> | ||
</DatiAnagrafici> | ||
<Sede> | ||
<Indirizzo>Via Milano, 1</Indirizzo> | ||
<CAP>00100</CAP> | ||
<Comune>Roma</Comune> | ||
<Provincia>AK</Provincia> | ||
<Nazione>IT</Nazione> | ||
</Sede> | ||
<Contatti> | ||
<Telefono>06543534343</Telefono> | ||
<Email>[email protected]</Email> | ||
</Contatti> | ||
</CedentePrestatore> | ||
<CessionarioCommittente> | ||
<DatiAnagrafici> | ||
<IdFiscaleIVA> | ||
<IdPaese>IT</IdPaese> | ||
<IdCodice>06363391001</IdCodice> | ||
</IdFiscaleIVA> | ||
<CodiceFiscale>06363391001</CodiceFiscale> | ||
<Anagrafica> | ||
<Denominazione>Public Administration</Denominazione> | ||
</Anagrafica> | ||
</DatiAnagrafici> | ||
<Sede> | ||
<Indirizzo>Via Roma, 1</Indirizzo> | ||
<CAP>10100</CAP> | ||
<Comune>Torino</Comune> | ||
<Provincia>AK</Provincia> | ||
<Nazione>IT</Nazione> | ||
</Sede> | ||
</CessionarioCommittente> | ||
</FatturaElettronicaHeader> | ||
<FatturaElettronicaBody> | ||
<DatiGenerali> | ||
<DatiGeneraliDocumento> | ||
<TipoDocumento>TD01</TipoDocumento> | ||
<Divisa>EUR</Divisa> | ||
<Data>2016-06-15</Data> | ||
<Numero>INV/2016/0014</Numero> | ||
<ImportoTotaleDocumento>17.08</ImportoTotaleDocumento> | ||
<Causale>prima riga</Causale> | ||
<Causale>seconda riga</Causale> | ||
<Art73>SI</Art73> | ||
</DatiGeneraliDocumento> | ||
<DatiOrdineAcquisto> | ||
<RiferimentoNumeroLinea>2</RiferimentoNumeroLinea> | ||
<IdDocumento>PO123</IdDocumento> | ||
<CodiceCUP>456</CodiceCUP> | ||
<CodiceCIG>123</CodiceCIG> | ||
</DatiOrdineAcquisto> | ||
</DatiGenerali> | ||
<DatiBeniServizi> | ||
<DettaglioLinee> | ||
<NumeroLinea>1</NumeroLinea> | ||
<Descrizione>Mouse, Optical</Descrizione> | ||
<Quantita>1.000</Quantita> | ||
<UnitaMisura>Unit(s)</UnitaMisura> | ||
<PrezzoUnitario>10.00000</PrezzoUnitario> | ||
<PrezzoTotale>10.00</PrezzoTotale> | ||
<AliquotaIVA>22.00</AliquotaIVA> | ||
</DettaglioLinee> | ||
<DettaglioLinee> | ||
<NumeroLinea>2</NumeroLinea> | ||
<Descrizione>Zed+ Antivirus</Descrizione> | ||
<Quantita>1.000</Quantita> | ||
<UnitaMisura>Unit(s)</UnitaMisura> | ||
<PrezzoUnitario>4.00000</PrezzoUnitario> | ||
<PrezzoTotale>4.00</PrezzoTotale> | ||
<AliquotaIVA>22.00</AliquotaIVA> | ||
</DettaglioLinee> | ||
<DatiRiepilogo> | ||
<AliquotaIVA>22.00</AliquotaIVA> | ||
<ImponibileImporto>14.00</ImponibileImporto> | ||
<Imposta>3.08</Imposta> | ||
</DatiRiepilogo> | ||
</DatiBeniServizi> | ||
<DatiPagamento> | ||
<CondizioniPagamento>TP02</CondizioniPagamento> | ||
<DettaglioPagamento> | ||
<ModalitaPagamento>MP05</ModalitaPagamento> | ||
<DataScadenzaPagamento>2016-07-31</DataScadenzaPagamento> | ||
<ImportoPagamento>17.08</ImportoPagamento> | ||
</DettaglioPagamento> | ||
</DatiPagamento> | ||
</FatturaElettronicaBody> | ||
</ns1:FatturaElettronica> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters