diff --git a/app/Jobs/Bank/MatchBankTransactions.php b/app/Jobs/Bank/MatchBankTransactions.php index c1cd8e17094c..9f5260e204ab 100644 --- a/app/Jobs/Bank/MatchBankTransactions.php +++ b/app/Jobs/Bank/MatchBankTransactions.php @@ -260,6 +260,9 @@ class MatchBankTransactions implements ShouldQueue }, 1); + if(!$this->invoice) + return; + /* Create Payment */ $payment = PaymentFactory::create($this->invoice->company_id, $this->invoice->user_id);