Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
🤖 Auto commit for release 'develop' on 2026-06-02
JC5b275e80571cb
diff --git a/app/Api/V1/Controllers/Insight/Income/TagController.php b/app/Api/V1/Controllers/Insight/Income/TagController.phpindex 94be2ae461..df99eef909 100644--- a/app/Api/V1/Controllers/Insight/Income/TagController.php+++ b/app/Api/V1/Controllers/Insight/Income/TagController.php@@ -158,10 +158,7 @@ final class TagController extends Controller'currency_id' => (string) $foreignCurrencyId,'currency_code' => $journal['foreign_currency_code'],];- $response[$foreignKey]['difference'] = bcadd(- (string) $response[$foreignKey]['difference'],- Steam::positive($journal['foreign_amount'])- );+ $response[$foreignKey]['difference'] = bcadd((string) $response[$foreignKey]['difference'], Steam::positive($journal['foreign_amount']));$response[$foreignKey]['difference_float'] = (float) $response[$foreignKey]['difference'];}}diff --git a/app/Api/V1/Controllers/Insight/Transfer/TagController.php b/app/Api/V1/Controllers/Insight/Transfer/TagController.phpindex b7b85fd376..f92a7aa9f0 100644--- a/app/Api/V1/Controllers/Insight/Transfer/TagController.php+++ b/app/Api/V1/Controllers/Insight/Transfer/TagController.php@@ -155,10 +155,7 @@ final class TagController extends Controller'currency_id' => (string) $foreignCurrencyId,'currency_code' => $journal['foreign_currency_code'],];- $response[$foreignKey]['difference'] = bcadd(- (string) $response[$foreignKey]['difference'],- Steam::positive($journal['foreign_amount'])- );+ $response[$foreignKey]['difference'] = bcadd((string) $response[$foreignKey]['difference'], Steam::positive($journal['foreign_amount']));$response[$foreignKey]['difference_float'] = (float) $response[$foreignKey]['difference']; // intentional float}}diff --git a/app/Http/Controllers/Bill/IndexController.php b/app/Http/Controllers/Bill/IndexController.phpindex 07947c2c85..2009369ae0 100644--- a/app/Http/Controllers/Bill/IndexController.php+++ b/app/Http/Controllers/Bill/IndexController.php@@ -255,10 +255,7 @@ final class IndexController extends Controllerif (count($bill['paid_dates']) < count($bill['pay_dates'])) {$count = count($bill['pay_dates']) - count($bill['paid_dates']);if ($count > 0) {- $avg = bcdiv(- bcadd((string) $bill['amount_min'], (string) $bill['amount_max']),- '2'- );+ $avg = bcdiv(bcadd((string) $bill['amount_min'], (string) $bill['amount_max']), '2');$avg = bcmul($avg, (string) $count);$sums[$groupOrder][$currencyId]['total_left_to_pay'] = bcadd($sums[$groupOrder][$currencyId]['total_left_to_pay'], $avg);Log::debug(diff --git a/app/Http/Controllers/Budget/BudgetLimitController.php b/app/Http/Controllers/Budget/BudgetLimitController.phpindex b263d702a2..9632996690 100644--- a/app/Http/Controllers/Budget/BudgetLimitController.php+++ b/app/Http/Controllers/Budget/BudgetLimitController.php@@ -198,13 +198,7 @@ final class BudgetLimitController extends Controllerif ($request->expectsJson()) {$array = $limit->toArray();// add some extra metadata:- $spentArr = $this->opsRepository->sumExpenses(- $limit->start_date,- $limit->end_date,- null,- new Collection()->push($budget),- $currency- );+ $spentArr = $this->opsRepository->sumExpenses($limit->start_date, $limit->end_date, null, new Collection()->push($budget), $currency);$array['spent'] = $spentArr[$currency->id]['sum'] ?? '0';$array['left_formatted'] = Amount::formatAnything($limit->transactionCurrency, bcadd($array['spent'], (string) $array['amount']));$array['amount_formatted'] = Amount::formatAnything($limit->transactionCurrency, $limit['amount']);diff --git a/app/Http/Controllers/Budget/IndexController.php b/app/Http/Controllers/Budget/IndexController.phpindex 750a88e633..674f77fbee 100644--- a/app/Http/Controllers/Budget/IndexController.php+++ b/app/Http/Controllers/Budget/IndexController.php@@ -284,10 +284,7 @@ final class IndexController extends Controllerif (array_key_exists($currency->id, $spentArr) && array_key_exists('sum', $spentArr[$currency->id])) {$array['spent'][$currency->id]['spent'] = $spentArr[$currency->id]['sum'];- $array['spent'][$currency->id]['spent_outside'] = Steam::negative(bcsub(- $spentInLimits[$currency->id],- $spentArr[$currency->id]['sum']- ));+ $array['spent'][$currency->id]['spent_outside'] = Steam::negative(bcsub($spentInLimits[$currency->id], $spentArr[$currency->id]['sum']));$array['spent'][$currency->id]['currency_id'] = $currency->id;$array['spent'][$currency->id]['currency_symbol'] = $currency->symbol;$array['spent'][$currency->id]['currency_decimal_places'] = $currency->decimal_places;diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.phpindex f4b32fe5c5..ad724137dc 100644--- a/app/Http/Controllers/Chart/BudgetController.php+++ b/app/Http/Controllers/Chart/BudgetController.php@@ -539,13 +539,7 @@ final class BudgetController extends Controller}// get spent amount in this period for this currency.- $sum = $this->opsRepository->sumExpenses(- $currentStart,- $currentEnd,- $accounts,- new Collection()->push($budget),- $currency- );+ $sum = $this->opsRepository->sumExpenses($currentStart, $currentEnd, $accounts, new Collection()->push($budget), $currency);$amount = Steam::positive($sum[$currency->id]['sum'] ?? '0');$chartData[0]['entries'][$title] = Steam::bcround($amount, $currency->decimal_places);diff --git a/app/Jobs/CreateAutoBudgetLimits.php b/app/Jobs/CreateAutoBudgetLimits.phpindex d61661dd50..93cf5e9364 100644--- a/app/Jobs/CreateAutoBudgetLimits.php+++ b/app/Jobs/CreateAutoBudgetLimits.php@@ -122,13 +122,7 @@ class CreateAutoBudgetLimits implements ShouldQueue// if has one, calculate expenses and use that as a base.$repository = app(OperationsRepositoryInterface::class);$repository->setUser($autoBudget->budget->user);- $spent = $repository->sumExpenses(- $previousStart,- $previousEnd,- null,- new Collection()->push($autoBudget->budget),- $autoBudget->transactionCurrency- );+ $spent = $repository->sumExpenses($previousStart, $previousEnd, null, new Collection()->push($autoBudget->budget), $autoBudget->transactionCurrency);$currencyId = $autoBudget->transaction_currency_id;$spentAmount = $spent[$currencyId]['sum'] ?? '0';Log::debug(sprintf('Spent in previous budget period (%s-%s) is %s', $previousStart->format('Y-m-d'), $previousEnd->format('Y-m-d'), $spentAmount));@@ -218,13 +212,7 @@ class CreateAutoBudgetLimits implements ShouldQueue// if has one, calculate expenses and use that as a base.$repository = app(OperationsRepositoryInterface::class);$repository->setUser($autoBudget->budget->user);- $spent = $repository->sumExpenses(- $previousStart,- $previousEnd,- null,- new Collection()->push($autoBudget->budget),- $autoBudget->transactionCurrency- );+ $spent = $repository->sumExpenses($previousStart, $previousEnd, null, new Collection()->push($autoBudget->budget), $autoBudget->transactionCurrency);$currencyId = $autoBudget->transaction_currency_id;$spentAmount = $spent[$currencyId]['sum'] ?? '0';Log::debug(sprintf('Spent in previous budget period (%s-%s) is %s', $previousStart->format('Y-m-d'), $previousEnd->format('Y-m-d'), $spentAmount));diff --git a/app/Support/Http/Controllers/AugumentData.php b/app/Support/Http/Controllers/AugumentData.phpindex a507156873..a3a940b1ba 100644--- a/app/Support/Http/Controllers/AugumentData.php+++ b/app/Support/Http/Controllers/AugumentData.php@@ -222,14 +222,7 @@ trait AugumentData$currentEnd->addMonth();}// primary currency amount.- $expenses = $opsRepository->sumExpenses(- $currentStart,- $currentEnd,- null,- $budgetCollection,- $entry->transactionCurrency,- $this->convertToPrimary- );+ $expenses = $opsRepository->sumExpenses($currentStart, $currentEnd, null, $budgetCollection, $entry->transactionCurrency, $this->convertToPrimary);$spent = $expenses[$currency->id]['sum'] ?? '0';$entry->pc_spent = $spent;diff --git a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php b/app/Support/JsonApi/Enrichments/RecurringEnrichment.phpindex 672bdb2f90..d0c09bf027 100644--- a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php+++ b/app/Support/JsonApi/Enrichments/RecurringEnrichment.php@@ -354,10 +354,7 @@ class RecurringEnrichment implements EnrichmentInterface/** @var RecurrenceRepetition $repetition */foreach ($set as $repetition) {- $recurrence = $this->collection- ->filter(static fn (Recurrence $item): bool => (int) $item->id === (int) $repetition->recurrence_id)- ->first()- ;+ $recurrence = $this->collection->filter(static fn (Recurrence $item): bool => (int) $item->id === (int) $repetition->recurrence_id)->first();$fromDate = clone ($recurrence->latest_date ?? $recurrence->first_date);$recurrenceId = (int) $repetition->recurrence_id;$repId = (int) $repetition->id;diff --git a/composer.lock b/composer.lockindex 0b1bba3c92..3fa24b4d9b 100644--- a/composer.lock+++ b/composer.lock@@ -1245,25 +1245,26 @@},{"name": "guzzlehttp/guzzle",- "version": "7.10.6",+ "version": "7.11.0","source": {"type": "git","url": "https://github.com/guzzle/guzzle.git",- "reference": "e7412b3180912c01650cc66647f18c1d1cbe9b94"+ "reference": "c987f8ce84b8434fa430795eca0f3430663da72b"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/e7412b3180912c01650cc66647f18c1d1cbe9b94",- "reference": "e7412b3180912c01650cc66647f18c1d1cbe9b94",+ "url": "https://api.github.com/repos/guzzle/guzzle/zipball/c987f8ce84b8434fa430795eca0f3430663da72b",+ "reference": "c987f8ce84b8434fa430795eca0f3430663da72b","shasum": ""},"require": {"ext-json": "*",- "guzzlehttp/promises": "^2.3",- "guzzlehttp/psr7": "^2.8",+ "guzzlehttp/promises": "^2.5",+ "guzzlehttp/psr7": "^2.11","php": "^7.2.5 || ^8.0","psr/http-client": "^1.0",- "symfony/deprecation-contracts": "^2.2 || ^3.0"+ "symfony/deprecation-contracts": "^2.5 || ^3.0",+ "symfony/polyfill-php80": "^1.24"},"provide": {"psr/http-client-implementation": "1.0"@@ -1352,7 +1353,7 @@],"support": {"issues": "https://github.com/guzzle/guzzle/issues",- "source": "https://github.com/guzzle/guzzle/tree/7.10.6"+ "source": "https://github.com/guzzle/guzzle/tree/7.11.0"},"funding": [{@@ -1368,24 +1369,25 @@"type": "tidelift"}],- "time": "2026-06-01T13:06:22+00:00"+ "time": "2026-06-02T12:40:51+00:00"},{"name": "guzzlehttp/promises",- "version": "2.4.1",+ "version": "2.5.0","source": {"type": "git","url": "https://github.com/guzzle/promises.git",- "reference": "09e8a212562fb1fb6a512c4156ed71525969d6c2"+ "reference": "4360e982f87f5f258bf872d094647791db2f4c8e"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/guzzle/promises/zipball/09e8a212562fb1fb6a512c4156ed71525969d6c2",- "reference": "09e8a212562fb1fb6a512c4156ed71525969d6c2",+ "url": "https://api.github.com/repos/guzzle/promises/zipball/4360e982f87f5f258bf872d094647791db2f4c8e",+ "reference": "4360e982f87f5f258bf872d094647791db2f4c8e","shasum": ""},"require": {- "php": "^7.2.5 || ^8.0"+ "php": "^7.2.5 || ^8.0",+ "symfony/deprecation-contracts": "^2.5 || ^3.0"},"require-dev": {"bamarni/composer-bin-plugin": "^1.8.2",@@ -1435,7 +1437,7 @@],"support": {"issues": "https://github.com/guzzle/promises/issues",- "source": "https://github.com/guzzle/promises/tree/2.4.1"+ "source": "https://github.com/guzzle/promises/tree/2.5.0"},"funding": [{@@ -1451,27 +1453,29 @@"type": "tidelift"}],- "time": "2026-05-20T22:57:30+00:00"+ "time": "2026-06-02T12:23:43+00:00"},{"name": "guzzlehttp/psr7",- "version": "2.10.4",+ "version": "2.11.0","source": {"type": "git","url": "https://github.com/guzzle/psr7.git",- "reference": "d2a1a094e396da8957e797489fddaf860c340cfc"+ "reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/guzzle/psr7/zipball/d2a1a094e396da8957e797489fddaf860c340cfc",- "reference": "d2a1a094e396da8957e797489fddaf860c340cfc",+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/bbb5e61349fa5cb822b3e87842b951088b76b81f",+ "reference": "bbb5e61349fa5cb822b3e87842b951088b76b81f","shasum": ""},"require": {"php": "^7.2.5 || ^8.0","psr/http-factory": "^1.0","psr/http-message": "^1.1 || ^2.0",- "ralouphie/getallheaders": "^3.0"+ "ralouphie/getallheaders": "^3.0",+ "symfony/deprecation-contracts": "^2.5 || ^3.0",+ "symfony/polyfill-php80": "^1.24"},"provide": {"psr/http-factory-implementation": "1.0",@@ -1552,7 +1556,7 @@],"support": {"issues": "https://github.com/guzzle/psr7/issues",- "source": "https://github.com/guzzle/psr7/tree/2.10.4"+ "source": "https://github.com/guzzle/psr7/tree/2.11.0"},"funding": [{@@ -1568,7 +1572,7 @@"type": "tidelift"}],- "time": "2026-05-29T12:59:07+00:00"+ "time": "2026-06-02T12:30:48+00:00"},{"name": "guzzlehttp/uri-template",@@ -1880,16 +1884,16 @@},{"name": "laravel/framework",- "version": "v13.12.0",+ "version": "v13.13.0","source": {"type": "git","url": "https://github.com/laravel/framework.git",- "reference": "6ac27a7fcfa728250c9f77921cb8fb955546b591"+ "reference": "1daa6d3b4defe46976ccfa4fb0a7ab62717712a2"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/framework/zipball/6ac27a7fcfa728250c9f77921cb8fb955546b591",- "reference": "6ac27a7fcfa728250c9f77921cb8fb955546b591",+ "url": "https://api.github.com/repos/laravel/framework/zipball/1daa6d3b4defe46976ccfa4fb0a7ab62717712a2",+ "reference": "1daa6d3b4defe46976ccfa4fb0a7ab62717712a2","shasum": ""},"require": {@@ -2100,7 +2104,7 @@"issues": "https://github.com/laravel/framework/issues","source": "https://github.com/laravel/framework"},- "time": "2026-05-26T23:39:26+00:00"+ "time": "2026-06-02T14:28:17+00:00"},{"name": "laravel/passport",diff --git a/config/firefly.php b/config/firefly.phpindex 75de3b190e..a3cb25ddbd 100644--- a/config/firefly.php+++ b/config/firefly.php@@ -78,8 +78,8 @@ return ['running_balance_column' => (bool)env_default_when_empty(env('USE_RUNNING_BALANCE'), true), // this is only the default value, is not used.// see cer.php for exchange rates feature flag.],-'version' => 'develop/2026-06-01',-'build_time' => 1780342304,+'version' => 'develop/2026-06-02',+'build_time' => 1780412950,'api_version' => '2.1.0', // field is no longer used.'db_version' => 28, // field is no longer used.diff --git a/package-lock.json b/package-lock.jsonindex d0549127ce..7e99fc250a 100644--- a/package-lock.json+++ b/package-lock.json@@ -4218,9 +4218,9 @@}},"node_modules/chartjs-chart-sankey": {- "version": "0.14.1",- "resolved": "https://registry.npmjs.org/chartjs-chart-sankey/-/chartjs-chart-sankey-0.14.1.tgz",- "integrity": "sha512-odGALgh1HQyMlU1tO39R7HIiLQ1ti0vk1zg5iXnEU0gOpUQRZaAb7DBcudzeRL/2AGLAMpEVymyowvbtWMU2QA==",+ "version": "0.14.3",+ "resolved": "https://registry.npmjs.org/chartjs-chart-sankey/-/chartjs-chart-sankey-0.14.3.tgz",+ "integrity": "sha512-zCE2zYV/2/2QNuBowq8EXeuQ8ZxIgXQRR0uNS61GUNFVNdWkZn4JE1sOxAEe++1BlMoFOwH3jVVItppG1mt+xQ==","license": "MIT","peerDependencies": {"chart.js": ">=3.3.0"@@ -5344,9 +5344,9 @@"license": "MIT"},"node_modules/electron-to-chromium": {- "version": "1.5.364",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.364.tgz",- "integrity": "sha512-G/dYE3+AYhyHwzTwg8UbnXf7zqMERYh7l2jJ3QujhFsH8agSYwtnGAR2aZ7f0AakIKJXd5En/Hre4igIUrdlYw==",+ "version": "1.5.365",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.365.tgz",+ "integrity": "sha512-xfip4u1QF1s+URFqpA6N+OeFpDGpN7VJz1f3MO3bVL0QYBjpGiZ5/Of7kugvM+o8TTqmanUlviHN3c8M9vYWCw==","dev": true,"license": "ISC"},@@ -8257,9 +8257,9 @@}},"node_modules/node-releases": {- "version": "2.0.46",- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.46.tgz",- "integrity": "sha512-GYVXHE2KnrzAfsAjl4uP++evGFCrAU1jta4ubEjIG7YWt/64Gqv66a30yKwWczVjA6j3bM4nBwH7Pk1JmDHaxQ==",+ "version": "2.0.47",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.47.tgz",+ "integrity": "sha512-Uzmd6LXpouKo8EUK68IjH4+E01w/hXyV3R3g/geCJo+rXLNfh1xucB+LOzYEOQPSiUK3h/xZf0cQGcSsmyL2Og==","dev": true,"license": "MIT","engines": {