Create a new loan for a union member with automatic repayment schedule generation
ADMIN, CREDIT_OFFICER
DAYWEEKMONTHACTIVE status (immediately active)PENDING_APPROVAL status (requires approval)DRAFT statusLN00000001, incrementing sequentially.
principalAmount / termCountprincipalAmount * (interestRate / 100) * yearFractionprincipalPerPayment + interestPerPaymentyearFraction is calculated based on the term unit:
termCount / 365(termCount * 7) / 365termCount / 12ACTIVEPENDING_APPROVALAPPROVEDDEFAULTED
Exception: If an existing loan is fully paid but not marked as COMPLETED, it will be auto-completed.