mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-24 15:04:19 +00:00
credit note
This commit is contained in:
@@ -45,14 +45,14 @@ class GenerateCreditNotePdfLogic
|
||||
{
|
||||
$transaction = $this->fetchesTransaction->execute(['id' => $request->route('id')]);
|
||||
|
||||
$purchaseOrder = $transaction->owner()->transactions()
|
||||
->where('type', TransactionType::PURCHASE_ORDER)
|
||||
->complete()
|
||||
->first();
|
||||
// $purchaseOrder = $transaction->owner()->transactions()
|
||||
// ->where('type', TransactionType::PURCHASE_ORDER)
|
||||
// ->complete()
|
||||
// ->first();
|
||||
|
||||
$supplier = $this->fetchesCompany->execute(['id' => $transaction->receiver]);
|
||||
|
||||
$pdf = LaravelMpdf::loadView('pages.pdfs.credit_note', ['transaction' => $transaction, 'po_order_transaction' => $purchaseOrder, 'supplier' => $supplier]);
|
||||
$pdf = LaravelMpdf::loadView('pages.pdfs.credit_note', ['transaction' => $transaction, 'po_order_transaction' => null, 'supplier' => $supplier]);
|
||||
|
||||
return $pdf->stream('MockUpWhiteForm.pdf');
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<div class="number">EI#: {{ $transaction->bill_no }}</div>
|
||||
|
||||
|
||||
<div class="ref">Ref# {{ $po_order_transaction->booking->marking }}</div>
|
||||
<div class="ref">Ref# //todo-new $po_order_transaction->booking->marking </div>
|
||||
<div class="date">Date: {{ $transaction->created_at }}</div>
|
||||
<div> </div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user