From c8e4fdd3bd393a351f979a55d50eab6e093ddd17 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 22 Jul 2021 11:31:07 +1000 Subject: [PATCH] Fixes for ReminderJob --- app/Jobs/Util/ReminderJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Util/ReminderJob.php b/app/Jobs/Util/ReminderJob.php index 4c55aa8bc64c..b530105643e2 100644 --- a/app/Jobs/Util/ReminderJob.php +++ b/app/Jobs/Util/ReminderJob.php @@ -174,8 +174,8 @@ class ReminderJob implements ShouldQueue /**Refresh Invoice values*/ $invoice = $invoice->calc()->getInvoice(); - $invoice->client->service()->updateBalance($this->invoice->balance - $temp_invoice_balance)->save(); - $invoice->ledger()->updateInvoiceBalance($this->invoice->balance - $temp_invoice_balance, "Late Fee Adjustment for invoice {$this->invoice->number}"); + $invoice->client->service()->updateBalance($invoice->balance - $temp_invoice_balance)->save(); + $invoice->ledger()->updateInvoiceBalance($invoice->balance - $temp_invoice_balance, "Late Fee Adjustment for invoice {$this->invoice->number}"); return $invoice; }