This commit is contained in:
James Cole
2025-02-22 10:05:44 +01:00
parent bf04ca12c1
commit 73776e7869

View File

@@ -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',