Add pilot pay to journals; cleanup payment code #130

This commit is contained in:
Nabeel Shahzad
2018-03-02 13:12:39 -06:00
parent 284db21a3a
commit 9f89447070
10 changed files with 262 additions and 151 deletions

View File

@@ -446,7 +446,7 @@ class FinanceTest extends TestCase
'flight_time' => 60,
]);
$payment = $this->financeSvc->getPilotPilotPay($pirep_acars);
$payment = $this->financeSvc->getPilotPay($pirep_acars);
$this->assertEquals(100, $payment->getValue());
$pirep_acars = factory(App\Models\Pirep::class)->create([
@@ -456,7 +456,7 @@ class FinanceTest extends TestCase
'flight_time' => 90,
]);
$payment = $this->financeSvc->getPilotPilotPay($pirep_acars);
$payment = $this->financeSvc->getPilotPay($pirep_acars);
$this->assertEquals($payment->getValue(), 150);
}