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,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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user