see there's this magical button, what it does is takes the table that is "Transactions" and it looks at all the loan invoices and payments for that loan and it deletes and regenerates the entries in transactions. this doesn't affect any other areas, but if you're seeing something wrong in transactions try this button and it might fix the total and any weird entries that exist. don't worry it won't break anything if you try it.