Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aquisição de Bens e Serviços: Falha ao Validar Ficheiro #249

Open
batalhadematos opened this issue Jan 30, 2025 · 0 comments
Open

Aquisição de Bens e Serviços: Falha ao Validar Ficheiro #249

batalhadematos opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@batalhadematos
Copy link

batalhadematos commented Jan 30, 2025

Olá a todos,

Ao testar um ficheiro SAF-T da Aquisição de Bens e Serviços (nunca havia feito), são gerados 2 erros.

O ficheiro testado é bastante simples e foi criado com base no Decreto 317.20 de 14 de Dezembro, que acredito ser o decreto em vigor e que também está na estruturado no ficheiro que está aqui no repositório.

Os erros gerados:

Falha na validação, o campo AuditFile.SourceDocuments.PurchaseInvoices.1Invoice.1DocumentTotals.1Deductible.DeductibleAmount (FT 2025/12) do ficheiro está mal calculado

O conteúdo de AuditFile.SourceDocuments.PurchaseInvoices.1Invoice.1DocumentTotals.1Deductible.DeductiblePercentage (FT 2025/12) no arquivo não foi preenchido corretamente

De acordo com o decreto:

  • DeductibleAmount: deve ser o imposto dedutível (valor monetário);
  • DeductiblePercentage: Percentagem de imposto deduzido

Por curiosidade, testei também o ficheiro no link acima e o sistema gera exactamente os mesmos erros.

PS: Anexo o ficheiro em .TXT

EDIT: (gera também o erro de NIF mas é normal porque o NIF usado não existe)

EDIT2: Ao nível de estrutura validou correctamente contra o .xsd

Abraço

SAFT_A_2025-01-30_2025-01_GIT.txt

@cryptolopes cryptolopes added the bug Something isn't working label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants