gtARLastNumber

This function retrieves the last reference number used in Greentree Desktop for a variety of Accounts Receivable functions — for example, the last customer number, the last invoice, credit note, journal or receipt number.

Note: The auto-numbering feature must be enabled on the Accounts Receivable Module Control form to support this function.

Company

The company code to retrieve the last number from.

TransType

The type of last reference required. Valid transaction types are: Customer, Invoice, Credit Note, Journal, or Receipt.

Branch

The branch code to retrieve the last number from. If this is a valid branch which hasn't been set up for generated numbering the empty branch is used.

Returns

Errors Returned