Method EinvoicePaymentTerms():addSkonto() Professional

Adds an early payment discount (Skonto, BT-20).

Syntax
:addSkonto( <nDays>, <xPercent>, [<xBaseAmount>] ) --> self
Parameters
<nDays>
The number of days from the issue date within which the discount applies.
<xPercent>
The discount percentage, specified as a numeric value, a character string or an EinvoiceDecimal() object.
<xBaseAmount>
An optional base amount to which the percentage is applied, specified as a numeric value, a character string or an EinvoiceDecimal() object. This defaults to NIL, meaning no base amount is written and the discount refers to the invoice total.
Return

This method returns self.

Description

Adds an early payment discount (Skonto) which grants a discount of <xPercent>percent if the invoice is paid within <nDays> days. If <xBaseAmount> is specified, the percentage is applied to this amount instead of the invoice total.

In the XML document, the discount is written to the payment terms text (BT-20) using the German XRechnung convention "#SKONTO#TAGE=..#PROZENT=..#" (BR-DE-18). The percentage and the base amount are written with two decimal places.

The method can be called more than once to define a tiered discount, for example 2% within 14 days and 1% within 30 days.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.