mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:34:30 -04:00
Minor cleanup
This commit is contained in:
parent
fe7356cc89
commit
b696bdbb3b
@ -137,7 +137,6 @@ class ApplyPayment
|
|||||||
->updateBalance($this->amount_applied * -1)
|
->updateBalance($this->amount_applied * -1)
|
||||||
->updatePaidToDate($this->amount_applied)
|
->updatePaidToDate($this->amount_applied)
|
||||||
->updateStatus()
|
->updateStatus()
|
||||||
// ->deletePdf()
|
|
||||||
->save();
|
->save();
|
||||||
|
|
||||||
$this->credit
|
$this->credit
|
||||||
@ -147,7 +146,6 @@ class ApplyPayment
|
|||||||
event(new InvoiceWasUpdated($this->invoice, $this->invoice->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
|
event(new InvoiceWasUpdated($this->invoice, $this->invoice->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
|
||||||
|
|
||||||
if ((int) $this->invoice->balance == 0) {
|
if ((int) $this->invoice->balance == 0) {
|
||||||
// $this->invoice->service()->deletePdf();
|
|
||||||
$this->invoice = $this->invoice->fresh();
|
$this->invoice = $this->invoice->fresh();
|
||||||
event(new InvoiceWasPaid($this->invoice, $this->payment, $this->payment->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
|
event(new InvoiceWasPaid($this->invoice, $this->payment, $this->payment->company, Ninja::eventVars(auth()->user() ? auth()->user()->id : null)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user