Method EinvoiceAllowanceCharge():setBaseAmount() Professional

Sets the calculation base amount (BT-93/BT-100).

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

This method returns self.

Description

Assigns the base amount of the allowance (BT-93) or of the charge (BT-100) to which the percentage assigned via :setPercent() is applied. The base amount 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.