add new ststs feature
This commit is contained in:
@@ -154,7 +154,12 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h3 class="mt-5">Expenses Summary</h3>
|
||||
<div class="alert alert-success mt-5 mb-3">
|
||||
<strong>Donation Income to School:</strong>
|
||||
<span id="donationIncomeTotal">$<?= number_format((float) ($donationToSchool ?? 0), 2) ?></span>
|
||||
</div>
|
||||
|
||||
<h3>Expenses Summary</h3>
|
||||
<div class="table-responsive">
|
||||
<table id="expensesTable" class="table table-bordered align-middle w-100">
|
||||
<thead>
|
||||
@@ -410,6 +415,8 @@
|
||||
}
|
||||
|
||||
// Expenses
|
||||
const donationIncome = qs('#donationIncomeTotal');
|
||||
if (donationIncome) donationIncome.textContent = fmt(data.donationToSchool || 0);
|
||||
const expTbody = qs('#expensesTable tbody');
|
||||
expTbody.innerHTML = '';
|
||||
(data.expenses || []).forEach(exp => {
|
||||
|
||||
Reference in New Issue
Block a user