Apply to Numbers
Gravity utilizes the Apply to Numbers to establish a connection between transactions, ensuring their completion and settlement. Each transaction is assigned a unique transaction number and an apply to number, which serves to group vouchers/invoices with their corresponding credits and payments.
A voucher/invoice is created; the transaction ID and apply to number are the same.
When a check is printed and applied to the voucher it is given the same apply to number as the original voucher.
The transaction is complete when the sum of the document amounts and the apply to number equals $0.
This is also the case when credits are applied. Each credit has its unique transaction ID, but when applied to a voucher/invoice it will have the same apply to number as the voucher/invoice.
Both revenue and purchasing have routines to apply unapplied checks/cash receipts and credits to open vouchers and invoices. These routines change the original apply to number to the apply to number of the matching voucher/invoice.