diff --git a/app/Services/Invoice/ApplyPaymentAmount.php b/app/Services/Invoice/ApplyPaymentAmount.php index 2671b6209977..e63de5e8b59a 100644 --- a/app/Services/Invoice/ApplyPaymentAmount.php +++ b/app/Services/Invoice/ApplyPaymentAmount.php @@ -46,7 +46,7 @@ class ApplyPaymentAmount extends AbstractService } /*Don't double pay*/ - if ($this->invoice->statud_id == Invoice::STATUS_PAID) { + if ($this->invoice->status_id == Invoice::STATUS_PAID) { return $this->invoice; } diff --git a/app/Services/Invoice/MarkPaid.php b/app/Services/Invoice/MarkPaid.php index 8b8d700c6b1d..f3c23ab5b07f 100644 --- a/app/Services/Invoice/MarkPaid.php +++ b/app/Services/Invoice/MarkPaid.php @@ -43,7 +43,7 @@ class MarkPaid extends AbstractService } /*Don't double pay*/ - if ($this->invoice->statud_id == Invoice::STATUS_PAID) { + if ($this->invoice->status_id == Invoice::STATUS_PAID) { return $this->invoice; } @@ -96,7 +96,6 @@ class MarkPaid extends AbstractService ->save(); $this->invoice->service()->workFlow()->save(); - // InvoiceWorkflowSettings::dispatchNow($this->invoice); return $this->invoice; }