Minor Fixes

This commit is contained in:
David Bomba 2023-09-05 16:13:37 +10:00
parent ddc949c260
commit 0ac294eaf0

View File

@ -89,7 +89,7 @@ class InvoiceController extends Controller
$data = Cache::get($hash);
$invitation = false;
match($data['entity_type']){
match($data['entity_type'] ?? false){
'invoice' => $invitation = InvoiceInvitation::withTrashed()->find($data['invitation_id']),
'quote' => $invitation = QuoteInvitation::withTrashed()->find($data['invitation_id']),
'credit' => $invitation = CreditInvitation::withTrashed()->find($data['invitation_id']),