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

+9 -4
View File
@@ -287,9 +287,14 @@ public partial class Home
private static string GetRecurrenceLabel(Transaction t)
{
if (t.RecurrenceType != RecurrenceType.None)
return t.RecurrenceType.ToString();
return t.ParentTransaction?.RecurrenceType.ToString() ?? "Recurring";
var type = t.RecurrenceType != RecurrenceType.None
? t.RecurrenceType
: (t.ParentTransaction?.RecurrenceType ?? RecurrenceType.None);
return type switch
{
RecurrenceType.FourWeekly => "4 Weekly",
_ => type.ToString()
};
}
private void ComputeProjectedBalances()
@@ -342,7 +347,7 @@ public partial class Home
if (_nextPayday is null) return;
var txnsToPayday = await TransactionService.GetTransactionsInRangeAsync(
_userId, DateTime.Today.AddDays(1), _nextPayday.Value);
_userId, DateTime.Today.AddDays(1), _nextPayday.Value.AddDays(-1));
foreach (var account in _data.Accounts)
{