CurrencyExchangeHelper::roundWithRuleType Method [AX 2012]
Rounds the specified amount based on the rounding rule type of the currency.
Syntax
client server public static Amount roundWithRuleType(
Amount _amount,
CurrencyCode _currency,
CurrencyRoundingRuleType _currencyRoundingRuleType)
Run On
Called
Parameters
- _amount
Type: Amount Extended Data Type
The amount to round.
- _currency
Type: CurrencyCode Extended Data Type
The currency code to use to retrieve rounding settings.
- _currencyRoundingRuleType
Type: CurrencyRoundingRuleType Enumeration
The type of rounding rule to use.
Return Value
Type: Amount Extended Data Type
The rounded amount, based on the rounding rule type of the currency.
Remarks
This method should be used only if the Currency table buffer cannot be provided.
If the Currency table buffer can be provided, consider using the CurrencyExchangeHelper::roundWithRuleTypeCurrencyTable method.