PriceDiscSmartRounding Class [AX 2012]
| Method | Description | |
|---|---|---|
| addErrorText | |
| amount2Str | Converts an amount to a string without adding unnecessary decimals, or strips off any decimals from the amount to convert. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| checkRoundingExpressionOK | Checks whether the syntax of a rounding expression is OK. |
| checkRoundingExpressionsConsistency | Checks whether the rounding expressions in a rounding rule are consistent. |
| checkRoundingRuleOK | Checks whether a rounding rule can safely be used for rounding. |
| decimalSeparatorStr | |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getCorrespondingDigits | Extracts digits that correspond to the number of characters in the rounding expression in the specified amount. |
| getNumFromSyntax | Gets the number represented by a syntax expression. |
| getRoundingExpressionDecimalExponent | Computes the decimal exponent of a rounding expression. |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| new | Initializes a new instance of the Object class. (Inherited from Object.) |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| parmDecimalSeparator | Gets or sets the DecimalSeparator parameter. |
| round | Rounds an amount based on the smart rounding rule set that is associated with a currency. |
| roundByGroup | Rounds an amount based on the smart rounding rule set that is associated with the group ID. |
| roundByGroupRecId | Rounds an amount based on the the smart rounding rule set that is associated with the group received ID. |
| roundDown | Rounds down an amount based on the syntax expression and the specified lower limit. |
| roundUp | Rounds up an amount based on the syntax expression and the specified upper limit. |
| setRoundingRule | |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::construct | Initializes a new instance of the PriceDiscSmartRounding class. |
| ::getClientDecimalSeparator | Gets the decimal separator for a client computer from the regional settings. |
| ::roundingRuleCheck | Checks whether a rounding rule can be used for smart rounding. |
| ::smartRound | Applies smart rounding to an amount based on the rounding rules associated with a currency. |
| ::smartRoundByGroup | Applies smart rounding to an amount based on the rounding rules associated with a rounding group ID. |
Community Additions
ADD
Show: