Method EinvoiceAllowanceCharge():setAmount() Professional

Sets the amount (BT-92/BT-99).

Syntax
:setAmount( <xValue> ) --> self
Parameters
<xValue>
The amount, specified as a numeric value, a character string or an EinvoiceDecimal object.
Return

This method returns self.

Description

Assigns the amount of the allowance (BT-92) or of the charge (BT-99). The amount is mandatory and is specified as a positive value. It is deducted from the invoice total for an allowance and added to it for a charge, see :setCharge().

If NIL is passed, the amount is set to zero. If the value cannot be converted into a decimal number, this method raises a runtime error.

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.