Merge pull request #628 from jitendra-webkul/jitendra

convert price function issue fixed
This commit is contained in:
JItendra Singh 2019-02-26 18:46:41 +05:30 committed by GitHub
commit 1287d1065f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ class Core
{
$targetCurrency = !$targetCurrencyCode
? $this->getCurrentCurrency()
: $this->currencyRepository->findByField('code', $targetCurrencyCode);
: $this->currencyRepository->findOneByField('code', $targetCurrencyCode);
if (! $targetCurrency)
return $amount;