Besseres Handling Rückerstattungen
This commit is contained in:
@@ -28,6 +28,13 @@ class ReleaseRefundRequest
|
||||
*/
|
||||
public readonly ?string $retentionReason = null,
|
||||
public readonly ?string $retentionReasonNote = null,
|
||||
/**
|
||||
* Der Teili spendet den Betrag, statt ihn ausgezahlt zu bekommen.
|
||||
*
|
||||
* Dann braucht es keine Bankverbindung, und die Erstattung wird -- wie beim vorliegenden Konto --
|
||||
* sofort eingereicht. Gespeichert wird die Entscheidung in der Abrechnung, nicht am Vorgang.
|
||||
*/
|
||||
public readonly bool $donation = false,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -37,6 +44,12 @@ class ReleaseRefundRequest
|
||||
return filled($this->accountOwner) && filled($this->accountIban);
|
||||
}
|
||||
|
||||
/** Ob sofort eingereicht wird -- entweder liegt die Bankverbindung vor, oder es wird gespendet. */
|
||||
public function submitsDirectly(): bool
|
||||
{
|
||||
return $this->hasBankDetails() || $this->donation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Der Betrag, der beim Verband bleibt.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user