From fb787c2c53ca5adeb5fdfded31f99f94fecb500c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 30 Jun 2020 10:09:18 +1000 Subject: [PATCH] Fix for null client balance on import --- app/Jobs/Util/Import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index 426b386a08..bcf921576e 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -347,7 +347,8 @@ class Import implements ShouldQueue $modified = $resource; $modified['company_id'] = $this->company->id; $modified['user_id'] = $this->processUserId($resource); - + $modified['balance'] = $modified['balance'] ?: 0; + unset($modified['id']); unset($modified['contacts']);