mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Fix #9887
This commit is contained in:
@@ -239,7 +239,8 @@ trait AccountServiceTrait
|
|||||||
// submit to factory:
|
// submit to factory:
|
||||||
$submission = [
|
$submission = [
|
||||||
'group_title' => null,
|
'group_title' => null,
|
||||||
'user' => $account->user_id,
|
'user' => $account->user,
|
||||||
|
'user_group' => $account->user->userGroup,
|
||||||
'transactions' => [
|
'transactions' => [
|
||||||
[
|
[
|
||||||
'type' => 'Opening balance',
|
'type' => 'Opening balance',
|
||||||
@@ -460,11 +461,11 @@ trait AccountServiceTrait
|
|||||||
if (null === $currency) {
|
if (null === $currency) {
|
||||||
$currency = app('amount')->getNativeCurrencyByUserGroup($account->user->userGroup);
|
$currency = app('amount')->getNativeCurrencyByUserGroup($account->user->userGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
// submit to factory:
|
// submit to factory:
|
||||||
$submission = [
|
$submission = [
|
||||||
'group_title' => null,
|
'group_title' => null,
|
||||||
'user' => $account->user_id,
|
'user' => $account->user,
|
||||||
|
'user_group' => $account->user->userGroup,
|
||||||
'transactions' => [
|
'transactions' => [
|
||||||
[
|
[
|
||||||
'type' => 'Liability credit',
|
'type' => 'Liability credit',
|
||||||
|
Reference in New Issue
Block a user