Auto commit for release 'develop' on 2024-10-21

This commit is contained in:
github-actions
2024-10-21 05:15:16 +02:00
parent acadc89eaa
commit 7001051833
12 changed files with 416 additions and 403 deletions

View File

@@ -51,7 +51,7 @@ class FixUnevenAmount extends Command
$this->convertOldStyleTransfers();
$this->fixUnevenAmounts();
$this->matchCurrencies();
if(config('firefly.feature_flags.running_balance_column')) {
if (config('firefly.feature_flags.running_balance_column')) {
$this->friendlyInfo('Will recalculate transaction running balance columns. This may take a LONG time. Please be patient.');
AccountBalanceCalculator::recalculateAll(true);
$this->friendlyInfo('Done recalculating transaction running balance columns.');

View File

@@ -35,8 +35,8 @@ class CorrectAccountBalance extends Command
use ShowsFriendlyMessages;
public const string CONFIG_NAME = '610_correct_balances';
protected $description = 'Recalculate all account balance amounts';
protected $signature = 'firefly-iii:correct-account-balance {--F|force : Force the execution of this command.}';
protected $description = 'Recalculate all account balance amounts';
protected $signature = 'firefly-iii:correct-account-balance {--F|force : Force the execution of this command.}';
public function handle(): int
{
@@ -45,11 +45,12 @@ class CorrectAccountBalance extends Command
return 0;
}
if(config('firefly.feature_flags.running_balance_column')) {
if (config('firefly.feature_flags.running_balance_column')) {
$this->friendlyInfo('Will recalculate account balances. This may take a LONG time. Please be patient.');
$this->markAsExecuted();
$this->correctBalanceAmounts();
$this->friendlyInfo('Done recalculating account balances.');
return 0;
}
$this->friendlyWarning('This command has been disabled.');