Skip to content

Formatting.fs: statement generation #41

@simontreanor

Description

@simontreanor

Add a statement generation function to Formatting.fs that produces a month-by-month account statement from an AmortisationSchedule.

Each statement line should include:

  • Statement date
  • Opening balance
  • Payment received (split into principal and interest components)
  • Fees charged (if any)
  • Interest charged
  • Closing balance
  • Running total of interest paid to date

Output formats to support:

  • A structured F# record type (StatementLine) for programmatic use.
  • A plain-text tabular rendering suitable for inclusion in a letter or email.
  • Optionally, a CSV export.

This is a prerequisite for any regulatory disclosure that requires a projected payment schedule (e.g. SECCI pre-contractual information, CCA s.77A statement of account).

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions