mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-20 21:13: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');
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<div class="number">EI#: {{ $transaction->bill_no }}</div>
|
||||
|
||||
|
||||
<div class="ref">Ref# //todo-new $po_order_transaction->booking->marking </div>
|
||||
<div class="ref">Ref# {{ $booking->marking }}</div>
|
||||
<div class="date">Date: {{ $transaction->created_at }}</div>
|
||||
<div> </div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user