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
54 stars 14 forks source link

validationtool-1.4.1 mit validator-configuration-xrechnung_2.0.1 meldet Fehler "[BR-DE-18] Skonto/Verzug Zeilen" #54

Closed spacetrack closed 1 year ago

spacetrack commented 3 years ago

Hallo,

obwohl die Zeile

  <cac:PaymentTerms>
    <cbc:Note>#SKONTO#TAGE=14#PROZENT=0.00#BASISBETRAG=9371.25#</cbc:Note>
  </cac:PaymentTerms>

in meinen Augen richtig aussieht, wird im Prüfbericht die Fehlermeldung

[BR-DE-18] Skonto/Verzug Zeilen in CreditNote muessen diesem regulaerem Ausdruck entsprechen: #(SKONTO|VERZUG)#TAGE=([0-9]+#PROZENT=[0-9]+.[0-9]{2})(#BASISBETRAG=-?[0-9]+.[0-9]{2})?#$.Die Informationen zur Gewährung von Skonto oder zur Berechnung von Verzugszinsen (...)

ausgegeben.

Auch der Online-Validator "regex101" meint, dies sei ein "Full match": https://regex101.com/r/9GcDE8/2.

Der validationtool-1.4.0 mit validator-configuration-xrechnung_2.0.0 beanstandet die Zeile nicht.

Mach' ich etwas falsch?

Viele Grüße Björn Winkler

marvindoering commented 3 years ago

Hi spacetrack,

try a line break after the last #. That fixed it for me, \r\n

BR Marvin