Additional catches
This commit is contained in:
parent
47e3d85e02
commit
d1ba154d69
|
|
@ -34,6 +34,9 @@ class ClientTransformer extends BaseTransformer
|
|||
throw new ImportException('Client already exists');
|
||||
}
|
||||
|
||||
if(!is_array($data))
|
||||
throw new ImportException('Empty row, or invalid data encountered.');
|
||||
|
||||
$settings = ClientSettings::defaults();
|
||||
$settings->currency_id = (string) $this->getCurrencyByCode($data);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue