MYOB Greentree

HideShow

  • Contents
  • Index
  • Search
 
Display results with all search words

 

gtARReceiptAddUnapply


This function supplies the information to add details of any unapplied values to Accounts Receivable Receipt headers. The Receipt Reference parameter must be the unique ID returned by the gtARReceipt function call.

Reference

This must be the unique identifier generated by the gtARReceipt function call. It has the format ARREC-nnn. This ensures the unapplied values are of the correct Receipt header and it ensures Excel creates the header information before attempting to calculate and create the receipt unapplied details.

UnAppliedRef

The invoice reference that the receipt will eventually be applied to, or the code UNAPP if this receipt is to be left unapplied.

Discount

The amount of discount allowed that applies to this unapplied value.

Net

The amount unapplied. The total amount applied to the invoice is the sum of the discount and net amounts entered.

Returns

  • Ok - If there are no errors.
  • Error - If there is an error.

Errors Returned

  • AR Receipt header error
  • Invalid AR Receipt header reference
  • AR Receipt header not found
  • Invalid customer