Added method to retrieve person_or_company of a SubBooking.

This commit is contained in:
Lukas Halbritter
2019-01-27 10:20:58 +01:00
parent 7358cebafb
commit 9116c2503b
+5
View File
@@ -81,6 +81,11 @@ class SubBooking extends Model
return $this->ioType()->factor * $this->amount;
}
public function personOrCompany()
{
return $this->booking->person_or_company;
}
/**************************************************************************
* SUMS OVER INCOMES AND EXPEDITURES, ACCOUNT BALANCES *
**************************************************************************/