mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 02:44:35 -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*/
|
/*Don't double pay*/
|
||||||
if ($this->invoice->statud_id == Invoice::STATUS_PAID) {
|
if ($this->invoice->status_id == Invoice::STATUS_PAID) {
|
||||||
return $this->invoice;
|
return $this->invoice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ class MarkPaid extends AbstractService
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*Don't double pay*/
|
/*Don't double pay*/
|
||||||
if ($this->invoice->statud_id == Invoice::STATUS_PAID) {
|
if ($this->invoice->status_id == Invoice::STATUS_PAID) {
|
||||||
return $this->invoice;
|
return $this->invoice;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +96,6 @@ class MarkPaid extends AbstractService
|
|||||||
->save();
|
->save();
|
||||||
|
|
||||||
$this->invoice->service()->workFlow()->save();
|
$this->invoice->service()->workFlow()->save();
|
||||||
// InvoiceWorkflowSettings::dispatchNow($this->invoice);
|
|
||||||
|
|
||||||
return $this->invoice;
|
return $this->invoice;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user