Skip to content

Commit

Permalink
Merge pull request #573 from bcgov/release/v1.20.0
Browse files Browse the repository at this point in the history
Release/v1.20.0
  • Loading branch information
shaunlumbcgov authored Jun 4, 2024
2 parents 13e20d7 + b0cff5d commit 0b75be4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion frontend/src/components/Batch/Batch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,6 @@ export default {
this.validating = false;
}
if (type == "students") {
//remove duplicates
this.validating = true;
if (value) {
let student = await StudentService.getStudentByPen(value);
Expand Down Expand Up @@ -1790,6 +1789,17 @@ export default {
return;
}
}
// Students must have a program completion date if regenerating their certificate
if (
!studentGradStatus.data.programCompletionDate &&
this.batch.details["what"] == "CERT_REGEN"
) {
this.validationMessage =
"Cannot regenerate a certificate for this student - this student has not completed their program";
this.validating = false;
return;
}
this.addValueToTypeInBatchId({
id,
type,
Expand Down

0 comments on commit 0b75be4

Please sign in to comment.