Added a signedAmount() function to the SubBooking model.

This commit is contained in:
Lukas Halbritter
2018-09-19 22:25:18 +02:00
parent 020c1c50d8
commit f2a12d40d7
+5
View File
@@ -6,6 +6,11 @@ use Illuminate\Database\Eloquent\Model;
class SubBooking extends Model
{
public function signedAmount()
{
return $this->ioType->factor * $this->amount;
}
/**************************************************************************
* BOOKINGS *
**************************************************************************/