From 305045a742a60788f9a70278e15b89befeb5700b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 10 Mar 2022 14:19:13 +1100 Subject: [PATCH] Fixes for tests --- app/Services/Invoice/HandleReversal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Invoice/HandleReversal.php b/app/Services/Invoice/HandleReversal.php index 053b2650b0b8..10933790e7bb 100644 --- a/app/Services/Invoice/HandleReversal.php +++ b/app/Services/Invoice/HandleReversal.php @@ -140,13 +140,13 @@ class HandleReversal extends AbstractService $transaction = [ 'invoice' => $this->invoice->transaction_event(), - 'payment' => $this->payment->transaction_event(), + 'payment' => [], 'client' => $this->invoice->client->transaction_event(), 'credit' => [], 'metadata' => [], ]; - TransactionLog::dispatch(TransactionEvent::PAYMENT_REVERSED, $transaction, $this->invoice->company->db); + TransactionLog::dispatch(TransactionEvent::INVOICE_REVERSED, $transaction, $this->invoice->company->db); return $this->invoice; //create a ledger row for this with the resulting Credit ( also include an explanation in the notes section )