Method EinvoiceAllowanceCharge():setReasonCode() Professional

Sets the reason code (BT-98/BT-105).

Syntax
:setReasonCode( <cValue> ) --> self
Parameters
<cValue>
The reason code, for example "FC" for freight charges.
Return

This method returns self.

Description

Assigns the reason code of the allowance (BT-98) or of the charge (BT-105). The reason code of an allowance is defined in UNTDID 5189, and the reason code of a charge is defined in UNTDID 7161.

Either the reason code or the reason text assigned via :setReason() is required. The method AbstractEinvoice:validate() reports rule BR-33 for an allowance or rule BR-38 for a charge if both are empty.

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.