Skip to content

[PIL-2900] Data entry hint text and error messages for new accounting period#666

Open
olakunlekuye2 wants to merge 13 commits into
mainfrom
PIL-2900
Open

[PIL-2900] Data entry hint text and error messages for new accounting period#666
olakunlekuye2 wants to merge 13 commits into
mainfrom
PIL-2900

Conversation

@olakunlekuye2

Copy link
Copy Markdown
Contributor

Summary

Implements PIL-2900: correct hint text and validation on What is the group's new accounting period? (accounting period change).

Changes

  • Validation (Scenarios 1–2): Apply Pillar 2 on or after 31 December 2023 long error before any submitted-period start rule (pillar2MinimumThenOptionalStartBoundary).
  • Boundaries: deriveNewAccountingPeriodDateBoundaries sets minimum start from end of non-amendable period + 1 day (not period start).
  • Hints (Scenarios 3–8): ChosenAccountingPeriod exposes startDateHint / endDateHint; new messages.en keys for each branch (pre-Pillar periods, after submitted end, end before next submitted start, etc.).

- Enforce Pillar 2 minimum before ETMP start boundary (combined constraint)
- Update minimum error copy to on or after 31 December 2023
- Branch start/end hint messages for boundary vs pre-Pillar period examples
- End hint copy references submitted period start when bounded
…conf

Required to exercise the new accounting period amend journey in development.
@platops-pr-bot

Copy link
Copy Markdown

Matches FrontendAppConfigSpec and repo default; local runs can override
via application-local.conf if needed.
Replace invalid `view(...)` calls with `organisationView(...)` in the
pre-Pillar hint scenario so test compilation succeeds in CI.
Add view and form specs for Fran hint/error scenarios covering no-boundary, submitted-period boundary, and pre-Pillar precedence cases to lock expected hint text and minimum-date validation behavior.
…ar examples

Update ChosenAccountingPeriod hint logic, messages, DateTimeUtils formatting,
and NewAccountingPeriodViewSpec expectations.
Align hint and boundary validation copy with review: show the actual
minimum start date and use on or after wording consistently.
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.

3 participants