itplr-kosit / validator-configuration-xrechnung

Configuration for validating documents against the German XRechnung standard using the KoSIT validation tool
https://xeinkauf.de/xrechnung/
Apache License 2.0
59 stars 16 forks source link

validation fail [BR-CO-15] eventhough fields are correct #68

Closed kowabungaboy closed 3 years ago

kowabungaboy commented 3 years ago

Hi,

for an xrechnung validation for a diga product I get the following validation error, both locally and on remote apis when I submit a test-xrechnung

val-sch.1.1 | BR-CO-15 | error | [BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).
Pfad: /ns4:CrossIndustryInvoice/ns4:SupplyChainTradeTransaction[1]/ns2:ApplicableHeaderTradeSettlement[1]/ns2:SpecifiedTradeSettlementHeaderMonetarySummation[1]

eventhough the relevant path looks like this:

image

I am using Validator Configuration 2021-07-31 compatible with XRechnung 2.1.1 and KoSIT Validator 1.4.2.

I appreciate any hint to what I am missing.

Thanks in advance and kind regards

phax commented 3 years ago

Hi, can you eventually post the message here, or PM it to me (see my profile for my email)?

kowabungaboy commented 3 years ago

Hi,

do you mean the following?

Screenshot from 2021-08-10 20-44-47 (The backend seems unhealthy, I'll dm you the report)

Let me know if you also want the full xml doc

Thanks and kind regards

phax commented 3 years ago

Yes, it would great to have the full XML document - because the Schematron rules are referencing through the document

phax commented 3 years ago

Thanks for sending the file by email. The problem is, that the ns2:TaxTotalAmount element is missing the attribute currencyID="EUR", which (according to BT-110) is mandatory.

kowabungaboy commented 3 years ago

Hi, I tried that aswell, but then I get a [CII-DT-031] - currencyID should not be present error. It seems to be the same assertion though? I'll send the files per mail

edit: for clarification, I either get one error or the other for the same field. so what would be a feasible solution to get this through the validation?

Thanks and kind regards

kowabungaboy commented 3 years ago

Hi, my issue was, that both ns2:TaxTotalAmount and ns2:CalculatedAmount had the attribute currencyID. Only ns2:TaxTotalAmount was supposed to have the attribute. Thanks again for your support! I'm closing the issue.