-
Notifications
You must be signed in to change notification settings - Fork 9
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
[CPDLP-3968] Amend void declarations service to include ineligible statement line items #5487
Conversation
be80085
to
ff44d31
Compare
Review app deployed to https://cpd-ecf-review-5487-web.test.teacherservices.cloud |
ff44d31
to
fac7347
Compare
@@ -62,9 +62,12 @@ | |||
) | |||
end | |||
|
|||
it "can be voided" do | |||
let(:line_item) { participant_declaration.statement_line_items.first } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we group the specs correctly, as the below context for when declaration is attached to a statement
will include the line items instead, where we can check all types there perhaps?
fac7347
to
6d2f226
Compare
@@ -91,37 +75,60 @@ | |||
end | |||
end | |||
|
|||
context "when declaration is submitted" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we keep submitted/this test please? as it can be voided but won't be in a statement
6d2f226
to
faecc74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
…atement line items
faecc74
to
304cdb0
Compare
Context
Contract managers are not able to see voids for ineligible declarations in the CSV extracts.
Changes proposed in this pull request
ineligible
statement line items, so the record state is updated tovoided
;submitted
line items from the logic as it's not a valid state forStatementLineItem
. Checked prod and there's nosubmitted
line itens currently in the db;