From 9116c2503bc2a06c8f0efea019357565fde7449f Mon Sep 17 00:00:00 2001 From: Lukas Halbritter Date: Sun, 27 Jan 2019 10:20:58 +0100 Subject: [PATCH] Added method to retrieve person_or_company of a SubBooking. --- app/SubBooking.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/SubBooking.php b/app/SubBooking.php index a3f30b7..5dc0658 100644 --- a/app/SubBooking.php +++ b/app/SubBooking.php @@ -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 * **************************************************************************/