-
Notifications
You must be signed in to change notification settings - Fork 14
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
#3721 - PT Assessment - Books and Supplies Limit #3771
#3721 - PT Assessment - Books and Supplies Limit #3771
Conversation
sources/packages/backend/workflow/src/workflow-definitions/parttime-assessment-decisions.dmn
Show resolved
Hide resolved
@@ -8,8 +8,8 @@ ARG FORMIO_SOURCE_REPO_TAG | |||
# Note: using pinned versions to ensure immutable build environment. | |||
RUN apk update && \ | |||
apk upgrade && \ | |||
apk add make=4.4.1-r2 && \ | |||
apk add python3=3.12.6-r0 && \ | |||
apk add make && \ |
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.
Thanks for taking care of this. I would suggest removing the version from the other packages also (lines 13 and 14).
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.
Great work, looks good 👍
it( | ||
"Should use minimum (offering program related costs) " + | ||
"when dmn limit for books and supplies * number of offering weeks has a higher value.", | ||
async () => { |
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.
Minor suggestion. The test case description is great, but maybe we could use "Should get program related costs as the offering program related costs when the DMN limit for books and supplies multiplied by offering weeks has the greater value."
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.
LGTM @andrepestana-aot. Just left a minor comment, but a blocker. Great work 👍
Quality Gate passedIssues Measures |
Added
limitWeeklyBooksAndSupplies
todmnPartTimeProgramYearMaximums
:Changed calculatedDataProgramRelatedCosts to check the minimum between
offeringProgramRelatedCosts
anddmnPartTimeProgramYearMaximums.limitWeeklyBooksAndSupplies * offeringWeeks
:Added offering delivery "blended" to allow
calculatedDataWeeklyMinTransport
to receivedmnPartTimeProgramYearMaximums.limitTransportationAllowance
:Added offering delivery "blended" to allow
inputDataRemainingTransportWeeks
to receive the value ofofferingWeeks - calculatedDataAdditionalTransportWeeks
Added offering delivery "blended" to allow
calculatedDataTotalTransportationAllowance
to receive the value ofofferingWeeks * dmnPartTimeProgramYearMaximums.limitTransportationAllowance
Added tests to check program related costs impacted by books and supply costs;
Added tests to check transportation costs when the offering delivery is blended;
Added
calculatedDataTotalAssessedNeed
to assessment.model.ts as this variable has a typo for FT and it is correct for PT. Added a TODO to be done in another ticket;Removed the python3 and make versions to fix a problem with local forms container (not related to this ticket).