1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

minor fixes

This commit is contained in:
David Bomba 2023-06-23 08:10:05 +10:00
parent ec562f645a
commit b71f1c0e37

View File

@ -818,17 +818,11 @@ class InvoiceController extends BaseController
return response()->json(['message' => 'no record found'], 400); return response()->json(['message' => 'no record found'], 400);
} }
$contact = $invitation->contact;
$invoice = $invitation->invoice; $invoice = $invitation->invoice;
// $file = $invoice->service()->getInvoicePdf($contact); $file_name = $invoice->numberFormatter().'.pdf';
/************** */ $file = (new \App\Jobs\Entity\CreateRawPdf($invitation, $invitation->company->db))->handle();
$file_name = $invoice->numberFormatter().'.pdf';
$file = (new \App\Jobs\Entity\CreateRawPdf($invitation, $invitation->company->db))->handle();
/************* */
$headers = ['Content-Type' => 'application/pdf']; $headers = ['Content-Type' => 'application/pdf'];