TT#184300 journals alawys write reseller_id

* if $resource does not have reseller_id then the user's one
  is used to write into the journal entry

Change-Id: I33ab6fe6271bd6be156b247c830eecea6e2f63ea
mr11.0
Kirill Solomko 3 years ago
parent f311177236
commit 514989cc5a

@ -655,7 +655,7 @@ sub _create_journal {
}
$journal{reseller_id} = $resource->{reseller_id};
$journal{reseller_id} = $resource->{reseller_id} // $c->user->reseller_id;
$journal{role_id} = NGCP::Panel::Utils::UserRole::resolve_role_id($c, $c->user);
$journal{tx_id} = $c->session->{api_request_tx_id};

Loading…
Cancel
Save