Added a signedAmount() function to the SubBooking model.
This commit is contained in:
@@ -6,6 +6,11 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SubBooking extends Model
|
||||
{
|
||||
public function signedAmount()
|
||||
{
|
||||
return $this->ioType->factor * $this->amount;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* BOOKINGS *
|
||||
**************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user