Skip to content

Conversation

@airajena
Copy link
Contributor

Description

Allow annual charge payments to be made on or after the due date instead of only on the exact due date.

Changes

  • Modified SavingsAccount.payCharge() validation to allow transactions on or after due date
  • Updated error code from invalid.date to transaction.before.dueDate for clarity

Rationale

In reality, charges are often deposited on savings accounts after their due date due to weekends, holidays, or processing delays. The system should allow payment at or after the due date, while still preventing early payments.

Testing

  • Verified compilation succeeds
  • Logic change is minimal and targeted

Fixes FINERACT-2155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant