BR-DE-18: Skonto (cash discount) line in the wrong format
XRechnung states a cash discount (Skonto) as a coded line in the payment terms. Every detail of the format is checked.
- Severity
- Error the invoice fails validation.
- Rule set
- XRechnung 3.0.2 (KoSIT)
- Where it applies
- XRechnung 3.0 in UBL and CII (Germany)
- ZUGFeRD / Factur-X with the XRECHNUNG profile
- Business terms
- BT-20 Payment terms · BT-115 Amount due for payment
Official rule text
UBL Skonto Zeilen in … müssen diesem regulärem Ausdruck entsprechen: …. Die Informationen zur Gewährung von Skonto müssen wie folgt im Element "Payment terms" (BT-20) übermittelt werden: Anzugeben ist im ersten Segment "SKONTO", im zweiten "TAGE=n", im dritten "PROZENT=n". Prozentzahlen sind ohne Vorzeichen sowie mit Punkt getrennt von zwei Nachkommastellen anzugeben. Liegt dem zu berechnenden Betrag nicht BT-115, "fälliger Betrag" zugrunde, sondern nur ein Teil des fälligen Betrags der Rechnung, ist der Grundwert zur Berechnung von Skonto als viertes Segment "BASISBETRAG=n" gemäß dem semantischen Datentypen Amount anzugeben. Jeder Eintrag beginnt mit einer #, die Segmente sind mit einer # getrennt und eine Zeile schließt mit einer # ab. Am Ende einer vollständigen Skontoangabe muss ein XML-konformer Zeilenumbruch folgen. Alle Angaben zur Gewährung von Skonto müssen in Großbuchstaben gemacht werden. Zusätzliches Whitespace (Leerzeichen, Tabulatoren oder Zeilenumbrüche) ist nicht zulässig. Andere Zeichen oder Texte als in den oberen Vorgaben genannt sind nicht zulässig.
CII Skonto Zeilen in … muessen diesem regulärem Ausdruck entsprechen: …. Die Informationen zur Gewährung von Skonto müssen wie folgt im Element "Payment terms" (BT-20) übermittelt werden: Anzugeben ist im ersten Segment "SKONTO", im zweiten "TAGE=n", im dritten "PROZENT=n". Prozentzahlen sind ohne Vorzeichen sowie mit Punkt getrennt von zwei Nachkommastellen anzugeben. Liegt dem zu berechnenden Betrag nicht BT-115, "fälliger Betrag" zugrunde, sondern nur ein Teil des fälligen Betrags der Rechnung, ist der Grundwert zur Berechnung von Skonto als viertes Segment "BASISBETRAG=n" gemäß dem semantischen Datentypen Amount anzugeben. Jeder Eintrag beginnt mit einer #, die Segmente sind mit einer # getrennt und eine Zeile schließt mit einer # ab. Am Ende einer vollständigen Skontoangabe muss ein XML-konformer Zeilenumbruch folgen. Alle Angaben zur Gewährung von Skonto müssen in Großbuchstaben gemacht werden. Zusätzliches Whitespace (Leerzeichen, Tabulatoren oder Zeilenumbrüche) ist nicht zulässig. Andere Zeichen oder Texte als in den oberen Vorgaben genannt sind nicht zulässig.
Translation: Skonto lines must match a regular expression. Information on a cash discount (Skonto) must be given in the element Payment terms (BT-20) as follows: the first segment is SKONTO, the second TAGE=n, the third PROZENT=n. Percentages are given without a sign and with two decimals separated by a point. If the discount is not calculated on the amount due (BT-115) but on part of it, the base amount is given as a fourth segment BASISBETRAG=n. Each entry starts with #, segments are separated by # and a line ends with #. A complete Skonto entry must be followed by an XML line break. All Skonto information must be in capital letters. Additional whitespace (spaces, tabs or line breaks) is not allowed, and no other characters or texts than those described.
What the rule checks
The rule reads the first payment terms note (cbc:Note in cac:PaymentTerms, ram:Description in ram:SpecifiedTradePaymentTerms in CII). Every line in it that starts with # must match the pattern #SKONTO#TAGE=14#PROZENT=2.00#, optionally followed by #BASISBETRAG=100.00#, and the last Skonto line must be followed by a line break.
Lines that do not start with # are free text and are not checked, so 'Payable within 30 days' can stand next to the Skonto line.
Common causes
- The percentage is written without two decimals (PROZENT=2) or with a comma (PROZENT=2,00).
- The line has no closing # or no line break after it, often because the software trims the text.
- The segments are in lower case, contain spaces, or the discount is described in words after a leading #.
How to fix it
Write each Skonto condition on its own line in exactly this form: #SKONTO#TAGE=14#PROZENT=2.00#, in capitals, with two decimals and a point, and end the line with a line break. Several conditions go on several lines.
If the discount applies only to part of the amount due, add the base: #SKONTO#TAGE=14#PROZENT=2.00#BASISBETRAG=500.00#.
<cac:PaymentTerms>
<cbc:Note>#SKONTO#TAGE=14#PROZENT=2#</cbc:Note>
</cac:PaymentTerms><cac:PaymentTerms>
<cbc:Note>#SKONTO#TAGE=14#PROZENT=2.00#
</cbc:Note>
</cac:PaymentTerms>UBL excerpts; elements that play no part in the rule are left out.
Can the fix page repair it?
Yes, once you supply the value. The fix page names the field; you enter the correct value, which is never guessed, and the corrected file is validated again before you download it.
Field on the fix page: paymentTerms
Repair a rejected invoiceGuide: What does BR-DE-15 mean? XRechnung error codes explained
Check your invoice against the official rules
Upload an XML or PDF invoice. You get every failing rule with an explanation, the fix and the line in the file. Free, without sign-up; the check on this page stores nothing.
Processed in memory and not stored. No sign-up needed.
E-Invoicing API