Fix last-name exception carry-forward and parent action label
Tests / PHPUnit (push) Successful in 55s

This commit is contained in:
root
2026-08-15 21:20:51 -04:00
parent 3cbfc40934
commit 717baaea79
3 changed files with 40 additions and 7 deletions
+3 -3
View File
@@ -1669,7 +1669,7 @@ class ParentController extends BaseController
private function requiredActionLabel(?array $evaluation): string
{
if ($evaluation === null) {
return 'Contact administration';
return 'Complete re-enrollment before the registration deadline.';
}
$state = $this->parentEnrollmentStateFromEvaluation($evaluation, null);
@@ -1678,7 +1678,7 @@ class ParentController extends BaseController
'Eligible with follow-up' => 'Complete re-enrollment and follow the listed next step.',
'Already submitted' => 'Already submitted',
'Action needed' => 'Action needed: pay the previous-year balance or contact administration.',
'Under review' => 'Under review. Contact the school administration.',
'Under review' => 'Contact the school administration.',
default => 'Contact administration',
};
}
@@ -1716,7 +1716,7 @@ class ParentController extends BaseController
return 'Already submitted';
}
if (! empty($evaluation['can_enroll']) || $decision === 'EXCEPTION_ELIGIBLE' || $decision === 'ELIGIBLE') {
if (! empty($evaluation['can_enroll']) || ! empty($evaluation['parent_enrollment_allowed']) || $decision === 'EXCEPTION_ELIGIBLE' || $decision === 'ELIGIBLE') {
if ($decision === 'ELIGIBLE_WITH_WARNING' || ($evaluation['warning_rule_codes'] ?? []) !== []) {
return 'Eligible with follow-up';
}