Method EinvoicePaymentTerms():addSkonto() Professional
Adds an early payment discount (Skonto, BT-20).
:addSkonto( <nDays>, <xPercent>, [<xBaseAmount>] ) --> self
This method returns self.
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.
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.