mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-24 23:13:59 +00:00
credit note
This commit is contained in:
@@ -37,18 +37,10 @@ class GenerateCreditNotePdfLogic
|
||||
*/
|
||||
public function execute(Request $request)
|
||||
{
|
||||
ini_set('memory_limit', '-1');
|
||||
|
||||
$transaction = $this->fetchesTransaction->execute(['id' => $request->route('id')]);
|
||||
|
||||
// $pdf = LaravelMpdf::loadView('pages.pdfs.credit_note', ['transaction' => $transaction]);
|
||||
|
||||
// return $pdf->stream('MockUpWhiteForm.pdf');
|
||||
|
||||
$pdf = LaravelMpdf::loadView('pages.pdfs.credit_note', ['transaction' => $transaction]);
|
||||
$pdfContent = $pdf->output();
|
||||
|
||||
// Pass the PDF content variable to the view
|
||||
return view('pages.pdf_view', ['pdfContent' => $pdfContent]);
|
||||
return $pdf->stream('MockUpWhiteForm.pdf');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user