mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Client Imports
This commit is contained in:
parent
7353687c04
commit
ece104695c
@ -39,9 +39,7 @@ class BaseTransformer
|
|||||||
|
|
||||||
public function getCurrencyByCode($data)
|
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)
|
if($code)
|
||||||
return $this->maps['currencies']->where('code', $code)->first()->id;
|
return $this->maps['currencies']->where('code', $code)->first()->id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user