Monthly summarys now are only displayed for months after the first booking.
This commit is contained in:
@@ -109,4 +109,13 @@ class Booking extends Model
|
||||
{
|
||||
return $this->subBookings->count() === 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the date of the very first booking.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function firstDate() {
|
||||
return Booking::min('date');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user