Previous Topic

Next Topic

ARAllocateTransactions - MaxBasic Function

ARAllocateTransactions(CreditTransactionID: Number, DebitTransactionID: Number, AllocationAmount: Number[, AllocationDate: Date[, DiscountAmount]): Number

Attempts to allocate a pair of transactions and returns the resulting AllocationID. Usual validation occurs and function errors if allocation was not successful.

ARAllocateTransactions function syntax has these named arguments:

Parameter

Description

CreditTransactionID

Required. ARTransactionID with Unallocated Credit Amount.

DebitTransactionID

Required. ARTransactionID with Unallocated Debit Amount.

AllocationAmount

Required. Amount to be allocated.

AllocationDate

Optional. Date for allocation. If not specified the date of the later transaction is used.

DiscountAmount

Optional. Discount amount to be allocated.

ARAllocateTransactions function returns:

Return Type

Description

Number

ARAllocationID if successful.

See Also

Accounting Functions

Book Contents

Book Index