From b696bdbb3be214c2e78f730e77a621e7dafad6c7 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 28 Apr 2024 13:36:37 +1000 Subject: [PATCH] Minor cleanup --- app/Services/Credit/ApplyPayment.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/Services/Credit/ApplyPayment.php b/app/Services/Credit/ApplyPayment.php index dea98654f39e..1d3838ee11fd 100644 --- a/app/Services/Credit/ApplyPayment.php +++ b/app/Services/Credit/ApplyPayment.php @@ -137,7 +137,6 @@ class ApplyPayment ->updateBalance($this->amount_applied * -1) ->updatePaidToDate($this->amount_applied) ->updateStatus() - // ->deletePdf() ->save(); $this->credit @@ -147,7 +146,6 @@ class ApplyPayment event(new InvoiceWasUpdated($this->invoice, $this->invoice->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null))); if ((int) $this->invoice->balance == 0) { - // $this->invoice->service()->deletePdf(); $this->invoice = $this->invoice->fresh(); event(new InvoiceWasPaid($this->invoice, $this->payment, $this->payment->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null))); }