Direct payments for invoices
Events can be moved to archive and moved back Fixed validation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user