RO e-Factura — credit note in a foreign currency (FCN)
Uma nota de crédito (FCN) emitida em SEK — e a ANAF aceita-a. Mostra o que a BR-RO-030 exige realmente: RON tem de aparecer como moeda da fatura (BT-5) OU como moeda de contabilização do IVA (BT-6), não necessariamente ambas. Aqui BT-5 é SEK e BT-6 é RON, o que cumpre a regra. Traz ainda o código de tipo 381, lícito numa nota de crédito e proibido numa fatura.
RO_CIUS 1.0.1 · UBL 2.1 — Válido
Uma nota de crédito (FCN) emitida em SEK — e a ANAF aceita-a. Mostra o que a BR-RO-030 exige realmente: RON tem de aparecer como moeda da fatura (BT-5) OU como moeda de contabilização do IVA (BT-6), não necessariamente ambas. Aqui BT-5 é SEK e BT-6 é RON, o que cumpre a regra. Traz ainda o código de tipo 381, lícito numa nota de crédito e proibido numa fatura.
O que este ficheiro mostra
Uma nota de crédito (FCN) emitida em SEK — e a ANAF aceita-a. Mostra o que a BR-RO-030 exige realmente: RON tem de aparecer como moeda da fatura (BT-5) OU como moeda de contabilização do IVA (BT-6), não necessariamente ambas. Aqui BT-5 é SEK e BT-6 é RON, o que cumpre a regra. Traz ainda o código de tipo 381, lícito numa nota de crédito e proibido numa fatura.
| Transações | 1 |
|---|---|
| Total | SEK 500,00 |
| Data no ficheiro | 2018-07-31 |
Todas as partes, IBAN e montantes abaixo são fictícios. Os IBAN são estruturalmente válidos — passam no mod-97 — mas não correspondem a nenhuma conta real.
Conteúdo do ficheiro
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed under European Union Public Licence (EUPL) version 1.2.
-->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- -->
<!-- Note - The purpose is to illustrate a credit note instance with minimum -->
<!-- contents technically (but probably insufficient from business perspective) -->
<!-- -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<CreditNote
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2">
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:efactura.mfinante.ro:CIUS-RO:1.0.1</cbc:CustomizationID>
<cbc:ID>2018-112</cbc:ID>
<cbc:IssueDate>2018-07-31</cbc:IssueDate>
<cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>
<cbc:DocumentCurrencyCode>SEK</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>RON</cbc:TaxCurrencyCode>
<cbc:BuyerReference>ACE22</cbc:BuyerReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="0007">1234512345</cbc:EndpointID>
<cac:PostalAddress>
<cbc:StreetName>line1</cbc:StreetName>
<cbc:CityName>SECTOR1</cbc:CityName>
<cbc:PostalZone>013329</cbc:PostalZone>
<cbc:CountrySubentity>RO-B</cbc:CountrySubentity>
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>RO1234567897</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Säljbolaget AB</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="0007">9876543210</cbc:EndpointID>
<cac:PostalAddress>
<cbc:StreetName>BD DECEBAL NR 1 ET1</cbc:StreetName>
<cbc:CityName>ARAD</cbc:CityName>
<cbc:PostalZone>123456</cbc:PostalZone>
<cbc:CountrySubentity>RO-AR</cbc:CountrySubentity>
<cac:Country>
<cbc:IdentificationCode>RO</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme><cbc:CompanyID>RO987456126</cbc:CompanyID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity>
<cbc:RegistrationName>Centrala Inköps Handelsbolag</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SEK">100</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="SEK">400</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="SEK">100</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="RON">249</cbc:TaxAmount>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="SEK">400</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="SEK">400</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="SEK">500</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="SEK">500</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:CreditNoteLine>
<cbc:ID>1</cbc:ID>
<cbc:CreditedQuantity unitCode="MON">1</cbc:CreditedQuantity>
<cbc:LineExtensionAmount currencyID="SEK">400</cbc:LineExtensionAmount>
<cac:Item>
<cbc:Name>Service fee</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="SEK">400</cbc:PriceAmount>
</cac:Price>
</cac:CreditNoteLine>
</CreditNote>Como sabemos que estes resultados se mantêm
Cada ficheiro desta biblioteca passa pelo próprio validador do site em cada build. O resultado esperado indicado acima é verificado por um teste automatizado: se um ficheiro deixasse de corresponder ao que esta página afirma, o build falharia. Duas fixtures herdadas foram reparadas assim antes da publicação: três IBAN falhavam o mod-97 e vários nomes usavam caracteres fora do conjunto SEPA básico.
Fatura RO e-Factura (Roménia, ANAF)
- RO e-Factura — conformant invoice (FACT1)
- RO e-Factura — BT-24 still declaring CIUS-RO:1.0.0 (BR-RO-001)
- RO e-Factura — Bucharest written “Sector 1” instead of SECTOR1 (BR-RO-100)
- RO e-Factura — buyer CUI with a wrong check digit (ERRIdentif)
- RO e-Factura — B2C invoice with the anonymous CNP (0000000000000)