Comments (1)
Não parece que a ideia seja representar um desconto financeiro, mas, sim, um desconto comercial. Os descontos financeiros não impactam ao nível dos totais do documento, pois são vistos como acordos e condições para o futuro.
O reporte de informação relativa a descontos financeiros é feita através do elemento Settlement
em <xs:element name="DocumentTotals">.
Já os descontos comerciais reportam-se através do elemento SettlementAmount
ao nível da linha. Importa ter em consideração que sempre que se aplicam descontos, o valor unitário UnitPrice
também sofre alterações, uma vez que corresponde ao valor líquido (sem impostos e deduzido dos descontos).
Considerando o mesmo exemplo sob o qual é aplicado um desconto de linha de 10%:
<Invoice>
<InvoiceNo>FT 2022/1</InvoiceNo>
<DocumentStatus>
<InvoiceStatus>N</InvoiceStatus>
<InvoiceStatusDate>2022-12-07T14:57:50</InvoiceStatusDate>
<SourceID>null</SourceID>
<SourceBilling>P</SourceBilling>
</DocumentStatus>
<Hash>LyK9CQCSzu0KRwr6Evs3ANbPiRh5thsPdgNht+Y88XrocaTNQRkJmxUmu7ZSsKBMxtH/uuQpxhgAXa8D/UG7TEButu9KCdx3JP1U90QG8ho2hJnYJ8I7gO19eMN3oIyHXTuSQXTg8mXsuQBA69sXU1LU1Q+KgZPkV/bvQxMqzVI=</Hash>
<HashControl>1</HashControl>
<Period>12</Period>
<InvoiceDate>2022-12-07</InvoiceDate>
<InvoiceType>FT</InvoiceType>
<SpecialRegimes>
<SelfBillingIndicator>0</SelfBillingIndicator>
<CashVATSchemeIndicator>0</CashVATSchemeIndicator>
<ThirdPartiesBillingIndicator>0</ThirdPartiesBillingIndicator>
</SpecialRegimes>
<SourceID>null</SourceID>
<SystemEntryDate>2022-12-07T14:57:50</SystemEntryDate>
<CustomerID>33</CustomerID>
<Line>
<LineNumber>1</LineNumber>
<ProductCode>44</ProductCode>
<ProductDescription>Vinho Pai Grande</ProductDescription>
<Quantity>1</Quantity>
<UnitOfMeasure>UN</UnitOfMeasure>
<!-- Preço unitário sem desconto 5000.00 -->
<UnitPrice>4500.00</UnitPrice>
<TaxPointDate>2022-12-07</TaxPointDate>
<Description>Vinho Pai Grande</Description>
<CreditAmount>4500.00</CreditAmount>
<Tax>
<TaxType>IVA</TaxType>
<TaxCountryRegion>AO</TaxCountryRegion>
<TaxCode>NOR</TaxCode>
<TaxPercentage>14</TaxPercentage>
</Tax>
<!-- Montante correspondente a 10% de desconto -->
<SettlementAmount>500.00</SettlementAmount>
</Line>
<DocumentTotals>
<TaxPayable>630.00</TaxPayable>
<NetTotal>4500.00</NetTotal>
<GrossTotal>5130.00</GrossTotal>
</DocumentTotals>
</Invoice>
from saf-t-ao.
Related Issues (20)
- Falha na validação do campo AuditFile.Header.ProductID HOT 1
- Use o xmlpad para poderes testar o teu SAFT cotra o xsd. Entretanto, dos testes executados com o xmlpad tens os seguintes erros:
- Submissão de SAFT com Imposto Predial Urbano HOT 1
- 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"
- 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
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.