Prevent linking invoice to user account if foreign payment

This commit is contained in:
2026-06-20 23:20:42 +02:00
parent 2348663fd8
commit 51c4055c47
@@ -30,7 +30,7 @@ class CreateInvoiceCommand {
'type' => $this->request->invoiceType, 'type' => $this->request->invoiceType,
'type_other' => $this->request->invoiceTypeExtended, 'type_other' => $this->request->invoiceTypeExtended,
'donation' => $this->request->isDonation, 'donation' => $this->request->isDonation,
'user_id' => $this->request->userId, 'user_id' => $this->request->paymentPurpose === null ? $this->request->userId : null,
'contact_name' => $this->request->contactName, 'contact_name' => $this->request->contactName,
'contact_email' => $this->request->contactEmail, 'contact_email' => $this->request->contactEmail,
'contact_phone' => $this->request->contactPhone, 'contact_phone' => $this->request->contactPhone,