Skip to content

ZEVA - Automated flagging of CA and MYR in user workflow #2551

@danclancy85

Description

@danclancy85

Title: Changes needed to automated flagging of CA

Description:

  • "As an IDIR user", "I want to be able to 'recommend' and properly backdate a CA, even when the corresponding MYR has been returned to the Supplier", "So that when reports have to be returned to BCeID users to make updates, they can still be included as part of the desired MYR"
  • Currently, if a credit application is issued by the director, but the MYR is returned to BCeID user for an update, the "Issue credit application backdated to Sept. 30 as part of their Model Year Report" checkbox is not appearing as an option on the CA page during the recommendation step.

Wireframe:

Purpose and benefit to user: The purpose is to allow IDIR users more flexibiltiy when reviewing and recommending CA as part of a MYR report.

Acceptance Criteria:

  • Given I am a IDIR user, I need to be able to recommend and properly backdate CAs even when a MYR has been returned to a supplier , so that the CA is included in the corresponding MYR.

Development Checklist:

  • Add the '"Issue credit application backdated to Sept. 30 as part of their Model Year Report" checkbox on the CA page during the recommendation step, even if the MYR has a status of "DRAFT" in the system.

Notes:
Discussion notes:
this is what happened: the MYR was returned to the supplier on Nov.13, and then resubmitted to government on Nov.25. This means that the MYR had a status of "DRAFT" during this time. The CA was recommended to the director on Nov.21, and since the MYR had a status of "DRAFT", the "Issue credit application backdated to Sept. 30 as part of their Model Year Report" checkbox didn't appear on the CA page when it was recommended. Since that checkbox didn't appear, it wasn't checked, and that's why the CA was not flagged as part of a MYR.

Note: A model year report is considered to be in a "returned to supplier" state if its status is "DRAFT" and if it has a history entry of "SUBMITTED." The relevant parts in the code: the fetchReports function in frontend/src/credits/components/CreditRequestDetailsPage.js, and the get_queryset function in backend/api/viewsets/model_year_report.py. Whoever works on this may want to just create a new endpoint that returns "returned to supplier" reports and call that endpoint in fetch_reports.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions