mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Client Imports
This commit is contained in:
parent
7353687c04
commit
ece104695c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user