Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CPDNPQ-2142] Add validation when marking Statement as paid #1915

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

jebw
Copy link
Contributor

@jebw jebw commented Nov 6, 2024

Context

Ticket: CPDNPQ-2142

We want to ensure that a statement has been recorded as having been paid at the point it transitions to a Paid state

Changes proposed in this pull request

  1. Added a conditional validation to the paid state to ensure the marked_as_paid_at field is present
  2. Added specs to check a state change is possible when the field is present and not possible when the field is not present

Failed feature specs screenshots

If any of the feature specs would fail, there will be page on the wiki with all
failures:

https://github.com/DFE-Digital/npq-registration/wiki/

Copy link

sonarcloud bot commented Nov 6, 2024

Base automatically changed from 2142-freeze-statements to main November 7, 2024 10:45
@jebw jebw added the blocked label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant