Direct payments for invoices

Events can be moved to archive and moved back
Fixed validation
This commit is contained in:
2026-05-12 16:04:15 +02:00
parent e2fb616565
commit 0cf9602958
42 changed files with 851 additions and 132 deletions
@@ -42,6 +42,7 @@ class CreateInvoiceCommand {
'travel_reason' => $this->request->travelReason,
'passengers' => $this->request->passengers,
'transportation' => $this->request->transportations,
'payment_purpose' => $this->request->paymentPurpose,
'document_filename' => $this->request->receiptFile !== null ? $this->request->receiptFile->fullPath : null,
]);
@@ -23,6 +23,7 @@ class CreateInvoiceRequest {
public bool $isDonation;
public ?int $userId;
public ?string $travelReason;
public ?string $paymentPurpose;
public function __construct(
@@ -43,6 +44,7 @@ class CreateInvoiceRequest {
?int $passengers = null,
?int $transportations,
?string $travelReason = null,
?string $paymentPurpose = null,
) {
$this->costUnit = $costUnit;
@@ -62,6 +64,7 @@ class CreateInvoiceRequest {
$this->isDonation = $isDonation;
$this->userId = $userId;
$this->travelReason = $travelReason;
$this->paymentPurpose = $paymentPurpose;
if ($accountIban === 'undefined') {
$this->accountIban = null;