add refund logic and fix books inventory logic
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 47s
Tests / PHPUnit (push) Failing after 1m20s

This commit is contained in:
root
2026-08-22 13:44:25 -04:00
parent 23d1cbb64c
commit d906a915d6
45 changed files with 4711 additions and 442 deletions
+12
View File
@@ -93,6 +93,12 @@
required
>
</div>
<div class="col-md-3">
<label class="form-label" for="new_total_instructional_weeks">Instructional Weeks</label>
<input class="form-control" id="new_total_instructional_weeks" name="total_instructional_weeks" type="number" min="1" step="1" required>
<input type="hidden" name="annual_fee_includes_books" value="1">
<input type="hidden" name="withdrawal_policy_version" value="studied_weeks_v1">
</div>
<div class="col-md-3 d-flex gap-2">
<button class="btn btn-primary" type="submit">Save Draft</button>
<button class="btn btn-secondary" type="button" data-bs-toggle="collapse" data-bs-target="#schoolYearCreateForm">Cancel</button>
@@ -320,6 +326,12 @@
<label class="form-label" for="fall_makeup_exam_on_<?= $id ?>">Fall Makeup Exam</label>
<input class="form-control" id="fall_makeup_exam_on_<?= $id ?>" name="fall_makeup_exam_on" type="date" value="<?= esc($year['fall_makeup_exam_on'] ?? '') ?>">
</div>
<div class="col-md-6 mb-3">
<label class="form-label" for="total_instructional_weeks_<?= $id ?>">Instructional Weeks</label>
<input class="form-control" id="total_instructional_weeks_<?= $id ?>" name="total_instructional_weeks" type="number" min="1" step="1" value="<?= esc($totalInstructionalWeeks ?? '') ?>" required>
<input type="hidden" name="annual_fee_includes_books" value="1">
<input type="hidden" name="withdrawal_policy_version" value="<?= esc($year['withdrawal_policy_version'] ?? 'studied_weeks_v1') ?>">
</div>
</div>
<label class="form-label" for="description_<?= $id ?>">Description</label>
<textarea class="form-control" id="description_<?= $id ?>" name="description" rows="3"><?= esc($year['description'] ?? '') ?></textarea>