For the purposes of this illustration, we make the following assumptions:
- Loan payments are entered by Big Little Micro Finance Ltd. loan administrators.
- If the loan amount is greater then the amount due, the overpayment is added to an overpayment field in the loan document and dealt with later.
- If the loan amount is less than the amount due, the amount paid is added to an overpayment field in the loan document, and the payment is considered overdue.
- Each borrower can have only one outstanding loan at a time. When the loan has been paid off, we assume, for the purposes of this illustration, that the loan information is moved into a yet to be defined history collection.
In order to accept a loan payment, logic needs to be devised in the Django views.py module of the newly created maintenance app. In addition, we need to add the appropriate methods to the loan domain service for BigLittle. Finally, a form template needs to be created that lets a loan administrator...