Pakete 8, 5 und 6: Beträge und Zahlungen, Ändern und Stornieren, A6 im Vorgang
Deploy FeWo mit PipelineManager / deploy (push) Successful in 4m44s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 4m44s
- Paket 8: Zahlungsarten (Gast an uns, laut Portal, Auszahlung, Erstattung), Portalbeträge als Angaben mit Quelle, Übersicht nach Zuständigkeit (R09). - Paket 5: Ändern mit Folgenvorschau, vereinbart oder dem Gast vorgeschlagen (signierter Link), ein Stornoweg mit Grund und Erstattung, Portalstorno erst nach Bestätigung. - Paket 6: eigene Nutzung, Besuch und Sperre als Vorgang mit Kurabgabe und Aufenthaltsbestätigung; Bestandsübernahme der Sperren mit identischem Export. - Wirksame Einstellungen (Expertenansicht), Abnahmekatalog T01–T14, Ergebnis-, Abnahme- und Konfigurationsdokument. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
33f8f899d6
commit
3bcfc09417
77 files changed
+3638
-122
No files matched your search
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
/**
|
||||
* A stated amount of a case as a portal or another source shows it (package 8, K01): stored as stated, never derived.
|
||||
* Positions of the guest's price, what the landlord pays the portal, and what the portal announces to pay out stay
|
||||
* apart; an unexplained collective amount stays unexplained.
|
||||
*/
|
||||
enum AmountKind: string implements HasLabel
|
||||
{
|
||||
case Accommodation = 'accommodation';
|
||||
case Service = 'service';
|
||||
case Discount = 'discount';
|
||||
case Fee = 'fee';
|
||||
case Unexplained = 'unexplained';
|
||||
case Commission = 'commission';
|
||||
case PayoutAnnounced = 'payout_announced';
|
||||
case InstallmentDue = 'installment_due';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Accommodation => 'Übernachtung',
|
||||
self::Service => 'Leistung / Zusatzleistung',
|
||||
self::Discount => 'Rabatt (mit Minus)',
|
||||
self::Fee => 'Gebühr oder Steuer',
|
||||
self::Unexplained => 'Sammelposten, nicht aufgeschlüsselt',
|
||||
self::Commission => 'Provision / an das Portal gezahlt',
|
||||
self::PayoutAnnounced => 'Angekündigte Auszahlung an uns',
|
||||
self::InstallmentDue => 'Rate des Gastes laut Portal fällig',
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the amount is part of the guest's price (and adds up to the guest total).
|
||||
*/
|
||||
public function isPricePosition(): bool
|
||||
{
|
||||
return in_array($this, [self::Accommodation, self::Service, self::Discount, self::Fee, self::Unexplained], true);
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ enum BookingTaskKind: string implements HasLabel
|
||||
case PortalCancellation = 'portal_cancellation';
|
||||
case PortalCancellationReported = 'portal_cancel_reported';
|
||||
case PortalChangeReported = 'portal_change_reported';
|
||||
case RefundCheck = 'refund_check';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
@@ -31,12 +32,13 @@ public function getLabel(): string
|
||||
self::PortalCancellation => 'Stornierung im Portal veranlassen bzw. prüfen',
|
||||
self::PortalCancellationReported => 'Das Portal meldet eine Stornierung – bitte prüfen',
|
||||
self::PortalChangeReported => 'Das Portal meldet eine Änderung – bitte prüfen',
|
||||
self::RefundCheck => 'Erstattung an den Gast prüfen',
|
||||
};
|
||||
}
|
||||
|
||||
public function isPayment(): bool
|
||||
{
|
||||
return ! in_array($this, [self::CancellationRequest, self::CancellationFee, self::PortalCancellation, self::PortalCancellationReported, self::PortalChangeReported], true);
|
||||
return ! in_array($this, [self::CancellationRequest, self::CancellationFee, self::PortalCancellation, self::PortalCancellationReported, self::PortalChangeReported, self::RefundCheck], true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,7 +52,7 @@ public function reminder(): ?array
|
||||
self::DepositReminder => [PaymentReminder::DEPOSIT_OVERDUE, 'deposit_reminded_at'],
|
||||
self::BalanceRequest => [PaymentReminder::BALANCE_REQUEST, 'balance_requested_at'],
|
||||
self::BalanceReminder => [PaymentReminder::BALANCE_OVERDUE, 'balance_reminded_at'],
|
||||
self::CancellationRequest, self::CancellationFee, self::PortalCancellation, self::PortalCancellationReported, self::PortalChangeReported => null,
|
||||
self::CancellationRequest, self::CancellationFee, self::PortalCancellation, self::PortalCancellationReported, self::PortalChangeReported, self::RefundCheck => null,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
/**
|
||||
* How a change of a booking was agreed with the guest – the evidence the case keeps (package 5). Sending an updated
|
||||
* confirmation is none of these: it informs the guest, it does not show the guest's consent.
|
||||
*/
|
||||
enum ChangeBasis: string implements HasLabel
|
||||
{
|
||||
case Phone = 'phone';
|
||||
case Email = 'email';
|
||||
case InPerson = 'in_person';
|
||||
case Portal = 'portal';
|
||||
case GuestLink = 'guest_link';
|
||||
case NotNeeded = 'not_needed';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Phone => 'am Telefon vereinbart',
|
||||
self::Email => 'per E-Mail / schriftlich vereinbart',
|
||||
self::InPerson => 'persönlich vereinbart',
|
||||
self::Portal => 'im Portal geändert',
|
||||
self::GuestLink => 'vom Gast über den Link angenommen',
|
||||
self::NotNeeded => 'keine Zustimmung nötig (eigener Vorgang)',
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use Filament\Support\Contracts\HasColor;
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
enum ChangeStatus: string implements HasColor, HasLabel
|
||||
{
|
||||
/** Sent to the guest, waiting for the guest's answer; nothing has changed yet. */
|
||||
case Proposed = 'proposed';
|
||||
|
||||
/** In force. */
|
||||
case Applied = 'applied';
|
||||
|
||||
case Declined = 'declined';
|
||||
|
||||
case Withdrawn = 'withdrawn';
|
||||
|
||||
case Expired = 'expired';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Proposed => 'dem Gast vorgeschlagen',
|
||||
self::Applied => 'wirksam',
|
||||
self::Declined => 'vom Gast abgelehnt',
|
||||
self::Withdrawn => 'zurückgezogen',
|
||||
self::Expired => 'nicht beantwortet',
|
||||
};
|
||||
}
|
||||
|
||||
public function getColor(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Proposed => 'warning',
|
||||
self::Applied => 'success',
|
||||
default => 'gray',
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public function description(): string
|
||||
self::Information => 'Für Anfragen ohne Reservierung: Preis und Verfügbarkeit ohne Zusage; der Gast kann die Buchung anfragen. Folgt mit Paket 7.',
|
||||
self::Confirmation => 'Nach der Annahme eines Angebots oder einer direkt vereinbarten Buchung: Bestätigung mit dem Mietvertrag.',
|
||||
self::ExternalRecord => 'Für Buchungen, die beim Portal bereits verbindlich sind: Buchungsdaten und – falls hinterlegt – Ihre Vorlage, ohne erneute Annahme durch den Gast.',
|
||||
self::StayConfirmation => 'Für private Überlassungen (Familie, Freunde): Bestätigung des Aufenthalts ohne Mietvertrag. Folgt mit Paket 6.',
|
||||
self::StayConfirmation => 'Für private Überlassungen (Familie, Freunde): Bestätigung des Aufenthalts ohne Mietvertrag, nur auf Wunsch.',
|
||||
self::Internal => 'Eigennutzung und Wartung: kein Dokument an Gäste.',
|
||||
};
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public function containsContract(): bool
|
||||
*/
|
||||
public function isAvailable(): bool
|
||||
{
|
||||
return in_array($this, [self::Offer, self::Confirmation, self::ExternalRecord], true);
|
||||
return in_array($this, [self::Offer, self::Confirmation, self::ExternalRecord, self::StayConfirmation], true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
/**
|
||||
* The kinds of internal cases (A6): the landlord's own use, a private stay of family or friends, or a block without a
|
||||
* guest (maintenance and the like). None of them has a rental contract, payment reminders, reviews or marketing.
|
||||
*/
|
||||
enum InternalKind: string implements HasLabel
|
||||
{
|
||||
case OwnUse = 'own_use';
|
||||
case PrivateStay = 'private_stay';
|
||||
case Block = 'block';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::OwnUse => 'Eigene Nutzung',
|
||||
self::PrivateStay => 'Private Überlassung (Familie, Freunde)',
|
||||
self::Block => 'Sperre (z. B. Wartung)',
|
||||
};
|
||||
}
|
||||
|
||||
public function hasGuests(): bool
|
||||
{
|
||||
return $this === self::PrivateStay;
|
||||
}
|
||||
|
||||
public static function fromPurpose(?BlockedPeriodPurpose $purpose): self
|
||||
{
|
||||
return $purpose === BlockedPeriodPurpose::OwnUse ? self::OwnUse : self::Block;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
|
||||
/**
|
||||
* What a payment is (package 8): only the guest's payments count towards what the guest owes; a portal's payout is
|
||||
* money on our account but no payment of the guest, and "paid to the portal" is the portal's statement, not money we
|
||||
* received. Nothing is counted twice.
|
||||
*/
|
||||
enum PaymentKind: string implements HasLabel
|
||||
{
|
||||
/** The guest paid us (transfer, cash). */
|
||||
case Guest = 'guest';
|
||||
|
||||
/** The portal reports that the guest paid it (no money on our account). */
|
||||
case GuestViaPortal = 'guest_via_portal';
|
||||
|
||||
/** The portal paid out to us. */
|
||||
case PortalPayout = 'portal_payout';
|
||||
|
||||
/** We paid money back to the guest (entered as a positive amount, counted negative). */
|
||||
case Refund = 'refund';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Guest => 'Gast hat an uns gezahlt',
|
||||
self::GuestViaPortal => 'Gast hat laut Portal ans Portal gezahlt',
|
||||
self::PortalPayout => 'Auszahlung vom Portal erhalten',
|
||||
self::Refund => 'Erstattung an den Gast',
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether it counts towards what the guest has paid of the agreed total.
|
||||
*/
|
||||
public function countsAsGuestPayment(): bool
|
||||
{
|
||||
return $this !== self::PortalPayout;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the money moved through our account.
|
||||
*/
|
||||
public function isOnOurAccount(): bool
|
||||
{
|
||||
return $this !== self::GuestViaPortal;
|
||||
}
|
||||
}
|
||||
@@ -13,11 +13,17 @@ enum QuoteLineType: string
|
||||
/** Manual price change by the landlord in an offer (negative = reduction). */
|
||||
case Adjustment = 'adjustment';
|
||||
|
||||
/** The agreed rent of an internal case (A6), e.g. 0 for family. */
|
||||
case Rent = 'rent';
|
||||
|
||||
/** The tourist tax (Kurabgabe) as its own position: persons × nights × the landlord's rate. */
|
||||
case TouristTax = 'tourist_tax';
|
||||
|
||||
/**
|
||||
* 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, self::Discount, self::Adjustment], true);
|
||||
return in_array($this, [self::Accommodation, self::ExtraGuest, self::Discount, self::Adjustment, self::Rent], true);
|
||||
}
|
||||
}
|
||||
@@ -12,11 +12,15 @@ enum Responsibility: string implements HasLabel
|
||||
case Landlord = 'landlord';
|
||||
case Portal = 'portal';
|
||||
|
||||
/** Nobody: internal cases (A6) have no rental documents, payment reminders or guest mails. */
|
||||
case Nobody = 'none';
|
||||
|
||||
public function getLabel(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Landlord => 'Wir',
|
||||
self::Portal => 'Das Portal',
|
||||
self::Nobody => 'Entfällt',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user