1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fix for null client balance on import

This commit is contained in:
David Bomba 2020-06-30 10:09:18 +10:00
parent 3561415c51
commit fb787c2c53

View File

@ -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']);