Skip to content

Commit

Permalink
Minor changes - currency rate round to 6 decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Sep 15, 2021
1 parent 8302313 commit 0a2a1c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ protected virtual async Task<PlaceOrderContainter> PreparePlaceOrderDetails()
var customerCurrency = (currencyTmp != null && currencyTmp.Published) ? currencyTmp : _workContext.WorkingCurrency;
details.Currency = customerCurrency;
var primaryStoreCurrency = await _currencyService.GetPrimaryStoreCurrency();
details.CurrencyRate = customerCurrency.Rate / primaryStoreCurrency.Rate;
details.CurrencyRate = Math.Round(customerCurrency.Rate / primaryStoreCurrency.Rate, 6);
details.PrimaryCurrencyCode = primaryStoreCurrency.CurrencyCode;

//customer language
Expand Down

0 comments on commit 0a2a1c0

Please sign in to comment.