Refresh model to ensure invoice is still payableg
This commit is contained in:
parent
15799372cf
commit
d932eb954d
|
|
@ -58,7 +58,7 @@ class AutoBillInvoice extends AbstractService
|
||||||
$is_partial = false;
|
$is_partial = false;
|
||||||
|
|
||||||
/* Is the invoice payable? */
|
/* Is the invoice payable? */
|
||||||
if (! $this->invoice->isPayable()) {
|
if (! $this->invoice->refresh()->isPayable()) {
|
||||||
return $this->invoice;
|
return $this->invoice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue