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

@@ -26,6 +26,20 @@ public partial class Transactions
.Take(_pageSize)
.ToList();
private IEnumerable<IGrouping<DateTime, Transaction>> GroupedPagedTransactions
{
get
{
var groups = PagedTransactions.GroupBy(t => t.Date.Date);
return _sortColumn == "date" && _sortAscending
? groups.OrderBy(g => g.Key)
: groups.OrderByDescending(g => g.Key);
}
}
private static IEnumerable<Transaction> OrderGroupByIncomeFirst(IGrouping<DateTime, Transaction> group) =>
group.OrderByDescending(t => t.Type == TransactionType.Income).ThenBy(t => t.Description);
private string _sortColumn = "date";
private bool _sortAscending = true;
@@ -305,6 +319,12 @@ public partial class Transactions
_bulkDeleteCount = 0;
}
private static string GetRecurrenceLabel(RecurrenceType type) => type switch
{
RecurrenceType.FourWeekly => "4 Weekly",
_ => type.ToString()
};
private async Task TogglePaid(Transaction t)
{
if (_userId is null) return;