Improved handling for new invoices

This commit is contained in:
2026-04-18 23:42:39 +02:00
parent 33a9271013
commit 4878f750bd
16 changed files with 206 additions and 32 deletions

View File

@@ -22,6 +22,7 @@ class CreateInvoiceRequest {
public float $totalAmount;
public bool $isDonation;
public ?int $userId;
public ?string $travelReason;
public function __construct(
@@ -41,6 +42,7 @@ class CreateInvoiceRequest {
?int $distance = null,
?int $passengers = null,
?int $transportations,
?string $travelReason = null,
) {
$this->costUnit = $costUnit;
@@ -59,6 +61,7 @@ class CreateInvoiceRequest {
$this->totalAmount = $totalAmount;
$this->isDonation = $isDonation;
$this->userId = $userId;
$this->travelReason = $travelReason;
if ($accountIban === 'undefined') {
$this->accountIban = null;