How Invoices Relate to Payments
Invoices have Invoice Detail records representing each line item making up the Invoice Total. Payments have Payment Detail records representing the line items paid for making up the Total Payment. The Invoice Detail and Payment Detail records are linked when a Payment is made that pays for that line item of the Invoice.
For example, a member of your Congregation registers on the Portal for both the Women's Conference ($100 Total, $25 Deposit) and Mother's Day Out ($35 Total, $5 Deposit). The $30 Payment she makes at the time of registration covers the Deposit for each Event. Two weeks later, she receives an email reminding her to pay the outstanding balance. She makes a $105 Payment from My Purchase History page of the Portal to cover the remaining balance for each Event.
The created records and their connections would look something like the following: