Language: Java. The pull request has one bug. You get three tries to find the line, then a short debrief.
Invoices can be paid in several payments. We add the payments up and close the invoice as soon as the sum reaches the invoice total. All amounts are BigDecimal.
Codetrap needs JavaScript: the code review happens in your browser.