gtARJournalAddUnapply
This function supplies the information to add details of any unapplied values to Accounts Receivable Journal headers. The Journal Reference parameter must be the unique ID returned by the gtARJournal function call.
Reference
This must be the unique identifier generated by the gtARJournal function call. It has the format ARJNL-nnn. This ensures the unapplied values are of the correct Journal header and it ensures Excel creates the header information before attempting to calculate and create the journal unapplied details.
UnAppliedRef
The reference of the transaction that the journal will eventually be applied to.
NetAmount
The amount unapplied. The total amount applied to the transaction includes tax.
Narration
The narration for this journal line.
Returns
- Ok - if no error is encountered
- Error - if an error is encountered
Errors Returned
- Invalid AR Journal header reference
- UnappliedRef is required
- Amount is required
- Amount must be numeric