Method EinvoiceAllowanceCharge():setReasonCode() Professional
Sets the reason code (BT-98/BT-105).
:setReasonCode( <cValue> ) --> self
This method returns self.
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.
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.