From d8423716baced3c92129de920855a986972b39f2 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 14 Sep 2017 11:58:18 +0300 Subject: [PATCH] Fix for tests --- app/Console/Commands/CreateTestData.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/CreateTestData.php b/app/Console/Commands/CreateTestData.php index 557dee23d998..8db2acbb8bee 100644 --- a/app/Console/Commands/CreateTestData.php +++ b/app/Console/Commands/CreateTestData.php @@ -152,7 +152,9 @@ class CreateTestData extends Command $invoice = $this->invoiceRepo->save($data); $this->info('Invoice: ' . $invoice->invoice_number); - $this->createPayment($client, $invoice); + if (! $isQuote) { + $this->createPayment($client, $invoice); + } } }