From e31e7f8502c95bc4575fc834bf21eb4ec771feaa Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 26 Aug 2022 15:35:20 +1000 Subject: [PATCH] Ensure invoice marked as paid --- app/Services/Invoice/ApplyPaymentAmount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Invoice/ApplyPaymentAmount.php b/app/Services/Invoice/ApplyPaymentAmount.php index 992d38cb52c5..564d84f37b2a 100644 --- a/app/Services/Invoice/ApplyPaymentAmount.php +++ b/app/Services/Invoice/ApplyPaymentAmount.php @@ -42,7 +42,7 @@ class ApplyPaymentAmount extends AbstractService public function run() { if ($this->invoice->status_id == Invoice::STATUS_DRAFT) { - $this->invoice->service()->markSent(); + $this->invoice->service()->markSent()->save(); } /*Don't double pay*/