Comments for invoices
This commit is contained in:
@@ -43,6 +43,7 @@ class CreateInvoiceCommand {
|
||||
'passengers' => $this->request->passengers,
|
||||
'transportation' => $this->request->transportations,
|
||||
'payment_purpose' => $this->request->paymentPurpose,
|
||||
'comment' => $this->request->notices,
|
||||
'document_filename' => $this->request->receiptFile !== null ? $this->request->receiptFile->fullPath : null,
|
||||
]);
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ class CreateInvoiceRequest {
|
||||
public ?int $userId;
|
||||
public ?string $travelReason;
|
||||
public ?string $paymentPurpose;
|
||||
public ?string $notices;
|
||||
|
||||
|
||||
public function __construct(
|
||||
@@ -45,6 +46,7 @@ class CreateInvoiceRequest {
|
||||
?int $transportations,
|
||||
?string $travelReason = null,
|
||||
?string $paymentPurpose = null,
|
||||
?string $notices = null,
|
||||
|
||||
) {
|
||||
$this->costUnit = $costUnit;
|
||||
@@ -65,6 +67,7 @@ class CreateInvoiceRequest {
|
||||
$this->userId = $userId;
|
||||
$this->travelReason = $travelReason;
|
||||
$this->paymentPurpose = $paymentPurpose;
|
||||
$this->notices = $notices;
|
||||
|
||||
if ($accountIban === 'undefined') {
|
||||
$this->accountIban = null;
|
||||
|
||||
Reference in New Issue
Block a user