mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-23 14:33:59 +00:00
credit note
This commit is contained in:
@@ -45,6 +45,8 @@ class GenerateCreditNotePdfLogic
|
||||
{
|
||||
$transaction = $this->fetchesTransaction->execute(['id' => $request->route('id')]);
|
||||
|
||||
$booking = $transaction->booking;
|
||||
|
||||
// $purchaseOrder = $transaction->owner()->transactions()
|
||||
// ->where('type', TransactionType::PURCHASE_ORDER)
|
||||
// ->complete()
|
||||
@@ -52,7 +54,7 @@ class GenerateCreditNotePdfLogic
|
||||
|
||||
$supplier = $this->fetchesCompany->execute(['id' => $transaction->receiver]);
|
||||
|
||||
$pdf = LaravelMpdf::loadView('pages.pdfs.credit_note', ['transaction' => $transaction, 'po_order_transaction' => null, 'supplier' => $supplier]);
|
||||
$pdf = LaravelMpdf::loadView('pages.pdfs.credit_note', ['transaction' => $transaction, 'booking' => $booking, 'supplier' => $supplier]);
|
||||
|
||||
return $pdf->stream('MockUpWhiteForm.pdf');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user