Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Switch to 1M when it's MTD.
James Cole52164689d4eb
diff --git a/app/Support/Navigation.php b/app/Support/Navigation.phpindex 585ba925b8..ed71714888 100644--- a/app/Support/Navigation.php+++ b/app/Support/Navigation.php@@ -206,7 +206,13 @@ class Navigationpublic function endOfPeriod(Carbon $end, string $repeatFreq): Carbon{$currentEnd = clone $end;+// Log::debug(sprintf('Now in endOfPeriod("%s", "%s").', $currentEnd->toIso8601String(), $repeatFreq));+ if('MTD' === $repeatFreq) {+ // fall back to a monthly schedule if the requested period is MTD.+ Log::debug('endOfPeriod() requests "MTD", set it to "1M" instead.');+ $repeatFreq = '1M';+ }$functionMap = ['1D' => 'endOfDay',