This commit is contained in:
rossmill76 committed 2026-04-02 19:28:18 +01:00
1 parent 4281924ee5
commit fc702adfcd
13 files changed
+69 -22

No files matched your search

+13 -4
View File
@@ -80,6 +80,7 @@
<option value="@RecurrenceType.None">None</option>
<option value="@RecurrenceType.Daily">Daily</option>
<option value="@RecurrenceType.Weekly">Weekly</option>
<option value="@RecurrenceType.FourWeekly">4 Weekly</option>
<option value="@RecurrenceType.Monthly">Monthly</option>
<option value="@RecurrenceType.Yearly">Yearly</option>
</InputSelect>
@@ -178,8 +179,15 @@ else
</tr>
</thead>
<tbody>
@foreach (var t in PagedTransactions)
@foreach (var group in GroupedPagedTransactions)
{
<tr>
<td colspan="7" class="py-1 px-3 table-light" style="font-size: 0.78rem;">
<span class="text-muted fw-semibold">@group.Key.ToString("dddd, d MMMM")</span>
</td>
</tr>
@foreach (var t in OrderGroupByIncomeFirst(group))
{
<tr class="row-clickable" @onclick="() => OpenEditModal(t)">
<td @onclick:stopPropagation="true">
@if (t.SalaryId is null)
@@ -221,11 +229,11 @@ else
<td class="d-none d-md-table-cell">
@if (t.RecurrenceType != RecurrenceType.None)
{
<span class="badge bg-info">🔁 @t.RecurrenceType</span>
<span class="badge bg-info">🔁 @GetRecurrenceLabel(t.RecurrenceType)</span>
}
else if (t.ParentTransactionId is not null)
{
<span class="badge bg-info">🔁 @(t.ParentTransaction?.RecurrenceType.ToString() ?? "Recurring")</span>
<span class="badge bg-info">🔁 @GetRecurrenceLabel(t.ParentTransaction?.RecurrenceType ?? RecurrenceType.None)</span>
}
else
{
@@ -236,7 +244,8 @@ else
@(t.Type == TransactionType.Income ? "+" : "-")@t.Account.FormatAmount(t.Amount)
</td>
</tr>
}
}
}
</tbody>
</table>
</div>