Report Strono-Date, Booking+Fewo Notice, Custom Mail opti

This commit is contained in:
Kevin Adametz 2021-04-23 14:55:48 +02:00
parent 644ec93c53
commit 5d55e5be3f
35 changed files with 581 additions and 41 deletions

View file

@ -176,6 +176,13 @@ use Illuminate\Database\Eloquent\Model;
* @property-read int|null $booking_provider_services_count
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\BookingProviderService[] $booking_provider_services_checked
* @property-read int|null $booking_provider_services_checked_count
* @property bool|null $comfort
* @property int|null $nationality_id
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\BookingNotice[] $booking_notices
* @property-read int|null $booking_notices_count
* @property-read \App\Models\TravelNationality|null $travel_nationality
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Booking whereComfort($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Booking whereNationalityId($value)
*/
class Booking extends Model
{
@ -529,6 +536,11 @@ class Booking extends Model
return $this->hasMany(BookingNotice::class, 'booking_id')->orderBy('created_at', 'DESC');
}
public function booking_strono()
{
return $this->hasOne(BookingStorno::class);
}
public function hasBookingServicesUnchecked(){
$country_services = true;
$provider_services = true;