Last update:
March 14, 2024
Override Rounding Policy¶
To customize the rounding behavior in your application:
-
Implement the interface
VirtoCommerce.CoreModule.Core.Currency.IMoneyRoundingPolicy
: -
Register the custom rounding policy with the Dependency Injection (DI) container in the
Module.cs
file: -
Ensure to replace the placeholder with your actual rounding logic in the
RoundMoney
method.