Ensure invoice marked as paid

This commit is contained in:
David Bomba 2022-08-26 15:35:20 +10:00
parent 59f9f0702a
commit e31e7f8502

View File

@ -42,7 +42,7 @@ class ApplyPaymentAmount extends AbstractService
public function run() public function run()
{ {
if ($this->invoice->status_id == Invoice::STATUS_DRAFT) { if ($this->invoice->status_id == Invoice::STATUS_DRAFT) {
$this->invoice->service()->markSent(); $this->invoice->service()->markSent()->save();
} }
/*Don't double pay*/ /*Don't double pay*/