-
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
#1715 COE and Tuition Remittance - e-Cert Adjustments #1840
Conversation
.../db-migrations/src/sql/DisbursementSchedules/Add-tuition-remittance-effective-amount-col.sql
Outdated
Show resolved
Hide resolved
.../db-migrations/src/sql/DisbursementSchedules/Add-tuition-remittance-effective-amount-col.sql
Outdated
Show resolved
Hide resolved
@@ -55,10 +55,12 @@ export class CancelApplicationAssessmentProcessor { | |||
} | |||
|
|||
if ( | |||
assessment.application.applicationStatus !== ApplicationStatus.Cancelled | |||
![ApplicationStatus.Cancelled, ApplicationStatus.Overwritten].includes( |
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 doing the fix 😉
...ges/backend/libs/integrations/src/esdc-integration/e-cert-integration/e-cert-file-handler.ts
Outdated
Show resolved
Hide resolved
...tion/e-cert-integration/e-cert-full-time-integration/e-cert-full-time.integration.service.ts
Outdated
Show resolved
Hide resolved
...libs/integrations/src/esdc-integration/e-cert-integration/models/e-cert-integration-model.ts
Outdated
Show resolved
Hide resolved
sources/packages/backend/libs/sims-db/src/entities/disbursement-schedule.model.ts
Outdated
Show resolved
Hide resolved
...es/backend/libs/integrations/src/services/disbursement-schedule/e-cert-generation.service.ts
Outdated
Show resolved
Hide resolved
...es/backend/libs/integrations/src/services/disbursement-schedule/e-cert-generation.service.ts
Outdated
Show resolved
Hide resolved
...es/backend/libs/integrations/src/services/disbursement-schedule/e-cert-generation.service.ts
Outdated
Show resolved
Hide resolved
...es/backend/libs/integrations/src/services/disbursement-schedule/e-cert-generation.service.ts
Show resolved
Hide resolved
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.
Nice work, please take a look at the comments.
-- Add tuition_remittance_effective_amount to disbursement_schedules table. | ||
ALTER TABLE | ||
sims.disbursement_schedules | ||
ADD |
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.
May be not a part of the PR or may be. The effective_amount and the awards(which are money values) are NUMERIC(8 , 2) but the tuition_remittance and tuition_remittance_effective_value are INT. Don't we eventually have one data type for the the amounts? @ann-aot @andrewsignori-aot @guru-aot @andrepestana-aot @sh16011993
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.
We had some back and forth about the money values actually having decimals or not. I would say that we can ensure that every money amount on DB has the ability to receive the decimals.
We also have different NUMERIC precisions (e.g. NUMERIC(8, 2)
and NUMERIC(7, 2)
).
I would say that we should normalize them all as NUMERIC(8, 2)
which should allow 999,999.99.
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.
Yes, I can create a ticket to have this tracked.
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.
@@ -55,10 +55,12 @@ export class CancelApplicationAssessmentProcessor { | |||
} | |||
|
|||
if ( | |||
assessment.application.applicationStatus !== ApplicationStatus.Cancelled | |||
![ApplicationStatus.Cancelled, ApplicationStatus.Overwritten].includes( |
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.
👍
@@ -281,6 +281,8 @@ export class ECertFileHandler extends ESDCFileHandler { | |||
gender: application.student.gender, | |||
maritalStatus: application.relationshipStatus, | |||
studentNumber: application.studentNumber, | |||
tuitionRemittanceEffectiveAmount: |
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.
I believe e-cert file handler must not be modified(schoolAmount). Only the assignment must change.
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.
Good work @ann-aot . Other than the comment on assignment for schoolAmount, I do not have any.
Nice work @ann-aot 👍. Please have a look at the comments. |
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 doing the changes, it looks good 👍
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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, thanks for doing the changes @ann-aot
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.
Good job @ann-aot 👍
tuition_remittance_effective_amount
inDisbursementSchedule
prepareDisbursementsForECertGeneration
schoolAmount
used during the e-Cert generation to reflect the value calculated for the columntuition_remittance_effective_amount
, it is using the COE requested valueedit application
scenario