From da50fc400c1739de614d141a6a7acc4802618b7d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sat, 22 Sep 2018 21:56:54 +0300 Subject: [PATCH] Fix for invoice link from quote --- app/Models/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index c72d28365c7c..6113481d4cb0 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -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;