credit note

This commit is contained in:
edmondlang
2023-08-01 02:05:00 +08:00
parent ef63dad63d
commit a87a8f8f9a
2 changed files with 104 additions and 72 deletions
@@ -45,12 +45,9 @@ class GenerateCreditNotePdfLogic
{
$transaction = $this->fetchesTransaction->execute(['id' => $request->route('id')]);
$booking = $transaction->booking;
dd($transaction);
// $purchaseOrder = $transaction->owner()->transactions()
// ->where('type', TransactionType::PURCHASE_ORDER)
// ->complete()
// ->first();
$booking = $transaction->booking;
$supplier = $this->fetchesCompany->execute(['id' => $transaction->receiver]);