Post fares/expenses on PIREP to Airline journal #130

This commit is contained in:
Nabeel Shahzad
2018-03-01 16:20:13 -06:00
parent f1b9ea94dc
commit 2c52a2f7e6
22 changed files with 625 additions and 85 deletions

View File

@@ -36,9 +36,10 @@ class UserService extends BaseService
/**
* Register a pilot. Also attaches the initial roles
* required, and then triggers the UserRegistered event
* @param User $user User model
* @param array $groups Additional groups to assign
* @param User $user User model
* @param array $groups Additional groups to assign
* @return mixed
* @throws \Exception
*/
public function createPilot(User $user, array $groups=null)
{
@@ -64,6 +65,7 @@ class UserService extends BaseService
# Let's check their rank and where they should start
$this->calculatePilotRank($user);
$user->initJournal(config('phpvms.currency'));
$user->refresh();