Repayment Order
When a payment is made in the system, it is allocated among principal, interest, penalty, and fees. The repayment order determines which of these is paid first. By default, the repayment order is penalty, fees, interest, and then principal.