Refresh model to ensure invoice is still payableg

This commit is contained in:
David Bomba 2025-03-21 09:15:04 +11:00
parent 15799372cf
commit d932eb954d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}