Comments (3)
Um exemplo por favor.
from saf-t-ao.
Cá vai, é o 2º documento
from saf-t-ao.
SAF-T-AO-ExemploTotalZero.zip
Atenção ao encoding do ficheiro, que deve ser UTF-8:
<?xml version="1.0" encoding="iso-8859-1"?>
Atenção aos erros de estrutura:
xmllint --schema XSD/SAFTAO1.01_01.xsd testing/SAF-T-AO-ExemploTotalZero.xml --noout
testing/SAF-T-AO-ExemploTotalZero.xml:6: element TaxRegistrationNumber: Schemas validity error : Element '{urn:OECD:StandardAuditFile-Tax:AO_1.01_01}TaxRegistrationNumber': [facet 'minLength'] The value has a length of '9'; this underruns the allowed minimum length of '10'.
testing/SAF-T-AO-ExemploTotalZero.xml:6: element TaxRegistrationNumber: Schemas validity error : Element '{urn:OECD:StandardAuditFile-Tax:AO_1.01_01}TaxRegistrationNumber': '999999999' is not a valid value of the atomic type '{urn:OECD:StandardAuditFile-Tax:AO_1.01_01}SAFAOAngolaVatNumber'.
testing/SAF-T-AO-ExemploTotalZero.xml:151: element WithholdingTaxAmount: Schemas validity error : Element '{urn:OECD:StandardAuditFile-Tax:AO_1.01_01}WithholdingTaxAmount': This element is not expected. Expected is ( {urn:OECD:StandardAuditFile-Tax:AO_1.01_01}WithholdingTaxType ).
testing/SAF-T-AO-ExemploTotalZero.xml:248: element WithholdingTaxAmount: Schemas validity error : Element '{urn:OECD:StandardAuditFile-Tax:AO_1.01_01}WithholdingTaxAmount': This element is not expected. Expected is ( {urn:OECD:StandardAuditFile-Tax:AO_1.01_01}WithholdingTaxType ).
testing/SAF-T-AO-ExemploTotalZero.xml fails to validate
Atenção à formatação do InvoiceNo
1 01/2020008
O número do documento deve iniciar-se obrigatoriamente a 1, ser contínuo e sequencial e não ter nenhum prefixo. No caso, parece ter o ano 2020
e dois zeros antes do 008
.
Documento não valorado
<Invoice>
<InvoiceNo>1 01/2020007</InvoiceNo>
<DocumentStatus>
<InvoiceStatus>A</InvoiceStatus>
<InvoiceStatusDate>2020-03-26T11:42:46</InvoiceStatusDate>
<SourceID>5</SourceID>
<SourceBilling>P</SourceBilling>
</DocumentStatus>
<Hash>aw8T4PrmJ6eShjPImpN9GKxR0/E2m+Hv4jLN0CV8i0TXmqkmgL49zyk4f3TzpF+NlrQNvq7x1jdAouWj154VpxsxUxJE/voJxJX17C/tGjnjHS7dQV1kuEVQm2XSZEzusJVG6X6J9VDPaSHB6pGSu7vHSgKXkq68KcP3kCLLwJI=</Hash>
<HashControl>1</HashControl>
<Period>2</Period>
<InvoiceDate>2020-02-27</InvoiceDate>
<InvoiceType>FT</InvoiceType>
<SpecialRegimes>
<SelfBillingIndicator>0</SelfBillingIndicator>
<CashVATSchemeIndicator>0</CashVATSchemeIndicator>
<ThirdPartiesBillingIndicator>0</ThirdPartiesBillingIndicator>
</SpecialRegimes>
<SourceID>5</SourceID>
<SystemEntryDate>2020-02-27T14:50:31</SystemEntryDate>
<CustomerID>311210138</CustomerID>
<Line>
<LineNumber>1</LineNumber>
<ProductCode>001</ProductCode>
<ProductDescription>RABALHOS REALIZADOS DURANTE O M�S DE FEVEREIRO CONFORME AUTO DE MEDI��O N�6 E NOSSA PROPOSTA DTC – T</ProductDescription>
<Quantity>1</Quantity>
<UnitOfMeasure>Unidade</UnitOfMeasure>
<UnitPrice>0.00000</UnitPrice>
<TaxPointDate>2020-02-27</TaxPointDate>
<Description>RABALHOS REALIZADOS DURANTE O M�S DE FEVEREIRO CONFORME AUTO DE MEDI��O N�6 E NOSSA PROPOSTA DTC – T</Description>
<CreditAmount>0.000</CreditAmount>
<Tax>
<TaxType>IVA</TaxType>
<TaxCountryRegion>AO</TaxCountryRegion>
<TaxCode>OUT</TaxCode>
<TaxPercentage>14.00</TaxPercentage>
</Tax>
</Line>
<DocumentTotals>
<TaxPayable>0.00</TaxPayable>
<NetTotal>0.00</NetTotal>
<GrossTotal>0.00</GrossTotal>
<Settlement>
<PaymentTerms>N�o Defenido - 09/03/2020</PaymentTerms>
</Settlement>
</DocumentTotals>
</Invoice>
Não deveria ser um problema submeter um documento a zero. Possivelmente é a plataforma da AGT que está a considerar isso mal, devendo o mesmo ser reportado à AGT. Em relação ao TaxCode
, parece existir um erro. Não há motivo para dizer é do tipo OUT
, devendo constar NOR
.
from saf-t-ao.
Related Issues (20)
- AuditFile.MasterFiles.3Customer.1ShipToAddress.BuildingNumber
- AuditFile.SourceDocuments.Payments.Payment.Line.SourceDocumentID.OriginatingON não permite repetição HOT 3
- DeductibleAmount e DeductiblePercentage com erro na validação HOT 2
- Erro no ficheiro,AuditFile.SourceDocuments.SalesInvoices.2Invoice (FT 2021LDA/2) . Hash está errado. HOT 7
- Mais uma vez... "erro Hash está Errado" HOT 2
- IVA /%
- CERTIFICAÇÃO DE SOFWARE EM ANGOLA
- Hash errado nos documentos seguintes - o que faço? HOT 2
- Boa noite ilustres estou com problemas com a validação do saft
- Estorno de Recibos Já Submetidos à AGT
- Erro "hash está errado"
- Desconto finaceiro e Imposto como representar no SAFT HOT 1
- Erro ! DocumentTotals.GrossTotal é maior que o documento de origem. HOT 1
- Hash (Hash errado ou falha na validação do Erro no ficheiro,AuditFile.SourceDocuments.SalesInvoices.2Invoice (FR 2023/3) . Hash está errado)
- Novo
- Último XSD official HOT 2
- ERRO DE VALIDAÇÃO DE HASH
- Não consigo fazer o teste de ficheiros SAF-T do tipo "faturação" no Portal de produtor
- (1)Erro no ficheiro, AuditFile.SourceDocuments.SalesInvoices.Invoice HOT 6
- erros
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saf-t-ao.