Method EinvoiceAllowanceCharge():setPercent() Professional

Sets the calculation percentage (BT-94/BT-101).

Syntax
:setPercent( <xValue> ) --> self
Parameters
<xValue>
The percentage, specified as a numeric value or a character string.
Return

This method returns self.

Description

Assigns the percentage of the allowance (BT-94) or of the charge (BT-101) which is applied to the base amount assigned via :setBaseAmount(), for example 5 for a 5% discount. The percentage is optional and informational only. It is passed through verbatim and is not used in any calculation.

Note: the value is not converted into an EinvoiceDecimal object and is not formatted. A character string is converted to UTF-8, and any other value is stored unchanged. In the XML document, the character representation of the value is written as is.

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.