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
+3 -3
View File
@@ -5,13 +5,13 @@
<div class="d-flex justify-content-between align-items-center mb-3 px-3">
<h3 class="mb-0">Books</h3>
<div class="btn-group">
<a class="btn btn-outline-primary" href="<?= site_url('inventory/book-prices') ?>">Book Prices</a>
<a class="btn btn-primary" href="<?= site_url('inventory/create/book') ?>">Add Book</a>
<button class="btn btn-outline-secondary" data-bs-toggle="modal" data-bs-target="#addCategoryModal">Add Category</button>
</div>
</div>
<?= view('partials/flash_messages') ?>
<div class="px-3 mb-2"><?= $this->include('partials/academic_filter') ?></div>
<?php
// Helper to render a compact grade label from a category row
@@ -50,7 +50,7 @@
<th>Grade Range</th> <!-- NEW -->
<th>Qty</th><th>Unit</th>
<th>Updated By</th><th>Updated Date</th>
<th>SKU</th><th style="width:110px">Actions</th>
<th>SKU</th><th style="width:150px">Actions</th>
</tr>
</thead>
<tbody>
@@ -72,7 +72,7 @@
<td><?= esc($i['updated_at'] ? local_datetime($i['updated_at'], 'm-d-Y H:i') : '—') ?></td>
<td><?= esc($i['sku']) ?></td>
<td>
<a class="btn btn-sm btn-outline-primary" href="<?= site_url('inventory/edit/'.$i['id']) ?>">Edit</a>
<a class="btn btn-sm btn-outline-primary" href="<?= site_url('inventory/edit/'.$i['id']) ?>">Edit Book</a>
<form action="<?= site_url('inventory/delete/'.$i['id']) ?>" method="post" class="d-inline">
<?= csrf_field() ?>
<button class="btn btn-sm btn-outline-danger" onclick="return confirm('Delete this item?')">Del</button>