1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Fix for invoice link from quote

This commit is contained in:
Hillel Coren 2018-09-22 21:56:54 +03:00
parent d9c031debb
commit da50fc400c

View File

@ -1608,7 +1608,7 @@ class Invoice extends EntityModel implements BalanceAffecting
return false;
}
$invoice = static::scope($this->quote_invoice_id)->with('invitations')->first();
$invoice = static::scope($this->quote_invoice_id, $this->account_id)->with('invitations')->first();
if (! $invoice) {
return false;