ISDOC-4.1.2

Doklad vystavený v cizí měně musí obsahovat v cizí měně i všechny finanční elementy. Konkrétně: pokud existuje element ForeignCurrencyCode, pak musí existovat všechny elementy s částkami pro cizí měnu tj. ty končící na Curr.

In English A document in a foreign currency must give every amount in the foreign currency as well: when ForeignCurrencyCode is given, each amount needs its counterpart ending in Curr.

error: the document is invalid

Why it fails

  • The document names ForeignCurrencyCode, but an amount such as LineExtensionAmount or TaxAmount has no LineExtensionAmountCurr or TaxAmountCurr next to it.

How to fix it

Give each amount in both currencies, or leave out ForeignCurrencyCode when the document is in the local currency only.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:LineExtensionAmount]
Test
isdoc:LineExtensionAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:LineExtensionAmountTaxInclusive]
Test
isdoc:LineExtensionAmountTaxInclusiveCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:DepositAmount]
Test
isdoc:DepositAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:TaxableDepositAmount]
Test
isdoc:TaxableDepositAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:TaxInclusiveDepositAmount]
Test
isdoc:TaxInclusiveDepositAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:TaxAmount]
Test
isdoc:TaxAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:TaxableAmount]
Test
isdoc:TaxableAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:TaxInclusiveAmount]
Test
isdoc:TaxInclusiveAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:AlreadyClaimedTaxableAmount]
Test
isdoc:AlreadyClaimedTaxableAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:AlreadyClaimedTaxAmount]
Test
isdoc:AlreadyClaimedTaxAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:AlreadyClaimedTaxInclusiveAmount]
Test
isdoc:AlreadyClaimedTaxInclusiveAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:DifferenceTaxableAmount]
Test
isdoc:DifferenceTaxableAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:DifferenceTaxAmount]
Test
isdoc:DifferenceTaxAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:DifferenceTaxInclusiveAmount]
Test
isdoc:DifferenceTaxInclusiveAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:TaxExclusiveAmount]
Test
isdoc:TaxExclusiveAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:AlreadyClaimedTaxExclusiveAmount]
Test
isdoc:AlreadyClaimedTaxExclusiveAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:DifferenceTaxExclusiveAmount]
Test
isdoc:DifferenceTaxExclusiveAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:PayableRoundingAmount]
Test
isdoc:PayableRoundingAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:PaidDepositsAmount]
Test
isdoc:PaidDepositsAmountCurr

Checked with ISDOC 6.0.2

Context
isdoc:Invoice[isdoc:ForeignCurrencyCode]//*[isdoc:PayableAmount]
Test
isdoc:PayableAmountCurr

Checked with ISDOC 6.0.2