From d7f5657ddafb33a7f6ab922fa95bedc8e695412b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 30 Jun 2020 09:02:18 +1000 Subject: [PATCH] Minor fix for null client balancE --- app/Traits/GenerateMigrationResources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 9f55022e60..1ec884f000 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -160,7 +160,7 @@ trait GenerateMigrationResources 'company_id' => $client->account_id, 'user_id' => $client->user_id, 'name' => $client->name, - 'balance' => $client->balance, + 'balance' => $client->balance ?: 0, 'paid_to_date' => $client->paid_to_date, 'address1' => $client->address1, 'address2' => $client->address2,