Skip to content
New issue

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

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

Already on GitHub? # to your account

schematron(?) errors if ram:TaxCurrencyCode is present? #24

Open
jstaerk opened this issue Sep 28, 2019 · 1 comment
Open

schematron(?) errors if ram:TaxCurrencyCode is present? #24

jstaerk opened this issue Sep 28, 2019 · 1 comment
Labels
upstream to be reported to/fixed by standards body

Comments

@jstaerk
Copy link
Contributor

jstaerk commented Sep 28, 2019

Original text:

if a invoice contains both tax currencycode and invoicecurrencycode like the one on https://www.zugferd-community.net/forum/posting.php?mode=reply&f=4&t=57

    <ram:ApplicableHeaderTradeSettlement>
      <ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode>
      <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>

returns a

<error type="4" location="/*[local-name()='CrossIndustryInvoice']/*[local-name()='SupplyChainTradeTransaction']/*[local-name()='ApplicableHeaderTradeSettlement']/*[local-name()='SpecifiedTradeSettlementHeaderMonetarySummation']" criterion="not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode) or (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode and (ram:TaxTotalAmount/@currencyID = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode) and not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:TaxCurrencyCode = /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceCurrencyCode))">
	Wenn eine Währung für die Umsatzsteuerabrechnung angegeben wurde, muss der Umsatzsteuergesamtbetrag in der Abrechnungswährung „Invoice total VAT amount in accounting currency“ (BT-111) angegeben werden.</error>

which can be solved if
<ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode>
is removed, but that does not make sense, maybe wrong brackets in the Schematron?

Original attachment
M1_RE100084.zip

@jstaerk jstaerk added the upstream to be reported to/fixed by standards body label Mar 26, 2020
@jstaerk
Copy link
Contributor Author

jstaerk commented Mar 26, 2020

duped by #31

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
upstream to be reported to/fixed by standards body
Projects
None yet
Development

No branches or pull requests

1 participant