What the rule requires
EN 16931 has no field for cash discounts. XRechnung defines a fixed format for them in the payment
terms (BT-20). Every line that starts with # must look like this:
#SKONTO#TAGE=14#PROZENT=2.25#
If the discount applies only to part of the amount due (BT-115), the base amount is added:
#SKONTO#TAGE=14#PROZENT=2.25#BASISBETRAG=357.93#
How it is checked
Only lines of BT-20 that start with # are checked. Without such a line there is nothing to check
and the rule does not fire.
The rules in detail
By the XRechnung specification 3.0.2:
- Segments in this order:
SKONTO,TAGE=n(days),PROZENT=n(percent), optionallyBASISBETRAG=n. - Percent without sign, with a dot and exactly two decimals:
2.00, not2or2,00. - Everything in upper case, no spaces or tabs in the line.
- Each discount line starts and ends with
#and is followed by a line break — also the last one. - Free text in BT-20 is allowed as well but must not contain
#.
Common causes
PROZENT=2orPROZENT=2,00instead ofPROZENT=2.00.- No line break after the last discount line.
- Lower case (
#Skonto#) or spaces. - Free text with
#, such as "Invoice #4711": the specification does not allow#in free text, even if the validator does not always report it.
How to fix it
If your program writes the discount line, check the payment terms in its settings; some programs have a separate field for XRechnung discounts. The discount is not deducted from the amount due (BT-115) (see BR-CO-16).
Example (CII)
<ram:SpecifiedTradePaymentTerms>
<ram:Description>#SKONTO#TAGE=14#PROZENT=2.00#
Zahlbar innerhalb von 30 Tagen ohne Abzug.</ram:Description> <!-- BT-20 -->
</ram:SpecifiedTradePaymentTerms>
Source: KoSIT, XRechnung specification 3.0.2, description of BT-20 and rule BR-DE-18.