Client Imports

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

View File

@ -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;