Added method to retrieve person_or_company of a SubBooking.
This commit is contained in:
@@ -81,6 +81,11 @@ class SubBooking extends Model
|
|||||||
return $this->ioType()->factor * $this->amount;
|
return $this->ioType()->factor * $this->amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function personOrCompany()
|
||||||
|
{
|
||||||
|
return $this->booking->person_or_company;
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* SUMS OVER INCOMES AND EXPEDITURES, ACCOUNT BALANCES *
|
* SUMS OVER INCOMES AND EXPEDITURES, ACCOUNT BALANCES *
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user