From d932eb954d08a75a1d93a42c39bac539ce69b249 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 21 Mar 2025 09:15:04 +1100 Subject: [PATCH] Refresh model to ensure invoice is still payableg --- app/Services/Invoice/AutoBillInvoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Invoice/AutoBillInvoice.php b/app/Services/Invoice/AutoBillInvoice.php index 23afaff4be..a5195d35b5 100644 --- a/app/Services/Invoice/AutoBillInvoice.php +++ b/app/Services/Invoice/AutoBillInvoice.php @@ -58,7 +58,7 @@ class AutoBillInvoice extends AbstractService $is_partial = false; /* Is the invoice payable? */ - if (! $this->invoice->isPayable()) { + if (! $this->invoice->refresh()->isPayable()) { return $this->invoice; }