1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Client Imports

This commit is contained in:
David Bomba 2020-12-16 21:13:02 +11:00
parent 7353687c04
commit ece104695c

View File

@ -39,10 +39,8 @@ class BaseTransformer
public function getCurrencyByCode($data)
{
$code = $data['client.currency_id'];
$code = array_key_exists('client.currency_id', $data) ? $data['client.currency_id'] : false;
info(print_r($this->maps['currencies']->where('code', $code)->first(),1));
if($code)
return $this->maps['currencies']->where('code', $code)->first()->id;