Merge pull request #628 from jitendra-webkul/jitendra
convert price function issue fixed
This commit is contained in:
commit
1287d1065f
|
|
@ -327,7 +327,7 @@ class Core
|
|||
{
|
||||
$targetCurrency = !$targetCurrencyCode
|
||||
? $this->getCurrentCurrency()
|
||||
: $this->currencyRepository->findByField('code', $targetCurrencyCode);
|
||||
: $this->currencyRepository->findOneByField('code', $targetCurrencyCode);
|
||||
|
||||
if (! $targetCurrency)
|
||||
return $amount;
|
||||
|
|
|
|||
Loading…
Reference in New Issue