- Datenmodell Property/Season/Extra (Beträge in Cent), Seeder mit Preisliste 2026 - PriceCalculator: Saison-Splitting, Mindestaufenthalt, Zusatzperson, Endreinigung, Extras, Anzahlung/Restzahlung - Filament-Verwaltung: Wohnungen, Saisons (Überschneidungsprüfung, Lückenwarnung, Kopie ins Folgejahr, Preisrechner), Zusatzleistungen - Tests für Preisberechnung und Saisonverwaltung Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
424 B
PHP
20 lines
424 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum QuoteLineType: string
|
|
{
|
|
case Accommodation = 'accommodation';
|
|
case ExtraGuest = 'extra_guest';
|
|
case Cleaning = 'cleaning';
|
|
case Extra = 'extra';
|
|
|
|
/**
|
|
* Whether the line counts towards the rent on which the deposit is calculated.
|
|
*/
|
|
public function isRent(): bool
|
|
{
|
|
return in_array($this, [self::Accommodation, self::ExtraGuest], true);
|
|
}
|
|
}
|