-
-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
275 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
from . import models | ||
|
||
import logging | ||
import tools | ||
from openerp import SUPERUSER_ID | ||
|
||
|
||
|
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 @@ | ||
from . import account_tools |
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,9 @@ | ||
import re | ||
|
||
# compiled reg expression for whitespace characters substitution | ||
reg_whitespace = re.compile(r'\s+') | ||
|
||
|
||
def encode_for_export(string_to_encode, max_chars, encoding='latin'): | ||
return reg_whitespace.sub(' ', string_to_encode).encode( | ||
encoding, errors='replace').decode(encoding)[:max_chars] |
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
112 changes: 112 additions & 0 deletions
112
l10n_it_fatturapa_out/tests/data/IT06363391001_00011.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,112 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ns1:FatturaElettronica xmlns:ns1="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2" versione="FPR12"> | ||
<FatturaElettronicaHeader> | ||
<DatiTrasmissione> | ||
<IdTrasmittente> | ||
<IdPaese>IT</IdPaese> | ||
<IdCodice>06363391001</IdCodice> | ||
</IdTrasmittente> | ||
<ProgressivoInvio>00011</ProgressivoInvio> | ||
<FormatoTrasmissione>FPR12</FormatoTrasmissione> | ||
<CodiceDestinatario>XXXXXXX</CodiceDestinatario> | ||
<ContattiTrasmittente> | ||
<Telefono>06543534343</Telefono> | ||
<Email>info@yourcompany.example.com</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>info@yourcompany.example.com</Email> | ||
</Contatti> | ||
</CedentePrestatore> | ||
<CessionarioCommittente> | ||
<DatiAnagrafici> | ||
<IdFiscaleIVA> | ||
<IdPaese>SI</IdPaese> | ||
<IdCodice>12345679</IdCodice> | ||
</IdFiscaleIVA> | ||
<Anagrafica> | ||
<Denominazione>REMODELAÇÃO DECORAÇÃO ?ALEC LDA?</Denominazione> | ||
</Anagrafica> | ||
</DatiAnagrafici> | ||
<Sede> | ||
<Indirizzo>M?aja ?traÇÃ 14</Indirizzo> | ||
<CAP>00000</CAP> | ||
<Comune>?of?a</Comune> | ||
<Provincia>EE</Provincia> | ||
<Nazione>SI</Nazione> | ||
</Sede> | ||
</CessionarioCommittente> | ||
</FatturaElettronicaHeader> | ||
<FatturaElettronicaBody> | ||
<DatiGenerali> | ||
<DatiGeneraliDocumento> | ||
<TipoDocumento>TD01</TipoDocumento> | ||
<Divisa>EUR</Divisa> | ||
<Data>2018-01-07</Data> | ||
<Numero>INV/2018/0021</Numero> | ||
<ImportoTotaleDocumento>17.08</ImportoTotaleDocumento> | ||
<Art73>SI</Art73> | ||
</DatiGeneraliDocumento> | ||
</DatiGenerali> | ||
<DatiBeniServizi> | ||
<DettaglioLinee> | ||
<NumeroLinea>1</NumeroLinea> | ||
<CodiceArticolo> | ||
<CodiceTipo>ODOO</CodiceTipo> | ||
<CodiceValore>GH82?23??D11</CodiceValore> | ||
</CodiceArticolo> | ||
<Descrizione>Mouse Optical Ø23 ß11</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> | ||
<CodiceArticolo> | ||
<CodiceTipo>ODOO</CodiceTipo> | ||
<CodiceValore>GZD11</CodiceValore> | ||
</CodiceArticolo> | ||
<Descrizione>Zed+^ Antiv° (£)</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>2018-02-28</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
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
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
Oops, something went wrong.