mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 19:01:39 +00:00
Added translation for initial balance account name on creation
This commit is contained in:
@@ -217,13 +217,13 @@ trait AccountServiceTrait
|
||||
*/
|
||||
public function storeOpposingAccount(User $user, string $name): Account
|
||||
{
|
||||
$name .= ' initial balance';
|
||||
$opposingAccountName = trans('firefly.initial_balance_account', ['name' => $name]);
|
||||
Log::debug('Going to create an opening balance opposing account.');
|
||||
/** @var AccountFactory $factory */
|
||||
$factory = app(AccountFactory::class);
|
||||
$factory->setUser($user);
|
||||
|
||||
return $factory->findOrCreate($name, AccountType::INITIAL_BALANCE);
|
||||
return $factory->findOrCreate($opposingAccountName, AccountType::INITIAL_BALANCE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user