Money Class |
Namespace: LSRetail.Omni.Domain.DataModel.Base.Retail
public sealed class Money
The Money type exposes the following members.
Name | Description | |
---|---|---|
![]() | Money | Initializes a new instance of the Money class |
![]() | Money(Money) | Initializes a new instance of the Money class |
![]() | Money(Decimal, Currency) | Initializes a new instance of the Money class |
![]() | Money(Decimal, String) | Initializes a new instance of the Money class |
Name | Description | |
---|---|---|
![]() | Currency | |
![]() | Value | |
![]() | ValueFormattedForReceipt |
Name | Description | |
---|---|---|
![]() | Allocate |
Allocate the specified numberOfParts, i.e. split into a list of
Money entities with equal value parts.
|
![]() ![]() | Round |
Rounds values to nearest a number of decimals using the currency rounding method.
|
![]() | RoundForDisplay(Boolean) | |
![]() | RoundForDisplay(Boolean, DecimalUtilsDecimalFormat) | |
![]() | RoundForDisplayAbs | |
![]() | RoundToUnit(Decimal, CurrencyRoundingMethod) | |
![]() | RoundToUnit(Decimal, Decimal, CurrencyRoundingMethod) |
Rounds values to nearest currency unit, i.e 16,45 kr. rounded up if the smallest coin is 10 kr will give 20 kr.
or if the smallest coin is 24 aurar(0,25 kr.) then if rounded up it will give 16,50 kr.
|
![]() | ToString | (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() ![]() | Addition | |
![]() ![]() | Subtraction |