Hi Tieku, payments can be linked to any module that is programmed to employ payments, as you can see in the gibbonPayment database table example below:
In this case, the payments were made form in the Finance module, and so the record is linked to the gibbonFinanceInvoice table, linking it to a specific invoice.