Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor changes - currency rate round to 6 decimal places
KrzysztofPajak0a2a1c0fc27f
diff --git a/src/Business/Grand.Business.Checkout/Commands/Handlers/Orders/PlaceOrderCommandHandler.cs b/src/Business/Grand.Business.Checkout/Commands/Handlers/Orders/PlaceOrderCommandHandler.csindex ac5a1ed93..09d0e77d8 100644--- a/src/Business/Grand.Business.Checkout/Commands/Handlers/Orders/PlaceOrderCommandHandler.cs+++ b/src/Business/Grand.Business.Checkout/Commands/Handlers/Orders/PlaceOrderCommandHandler.cs@@ -433,7 +433,7 @@ namespace Grand.Business.Checkout.Commands.Handlers.Ordersvar 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