paymentByTrustAccount

This function uses the trust account associated with a record to pay for a specific fee item.

Version

2.0

Parameters

Parameter Type Description
fSeqNbr long Sequence number of the fee item to be paid.
itemCap (optional) CapIDModel Optional target record ID.

Notes

The logic behind the function is:

  • Retrieves the primary trust account on the record.

  • Initiates payment from this trust account for the amount of the fee.

  • If payment successful, applies payment to the fee.

  • Generates a receipt for the payment.

  • Returns false if any of the previous fails. Otherwise returns true.

  • You can only pay invoiced fees.

Example

feeSeq = addFee(“C”,”F”,”P”,20,”Y”); 
paymentByTrustAccount(feeSeq);