mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes for double payments
This commit is contained in:
parent
543288c525
commit
4345dece14
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user