WIP
This commit is contained in:
1 parent
4281924ee5
commit
fc702adfcd
13 files changed
+69
-22
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user