Initializes a new instance of the Incidental class with the specified incidental code and percentage rate.

Namespace:  BargeEx
Assembly:  BargeEx (in BargeEx.dll)
Version: 3.0.400.140 (3.0.400.140)

Syntax

C#
public Incidental(
	CicaIncidentalCode code,
	decimal baseAmount,
	decimal percentage
)
Visual Basic (Declaration)
Public Sub New ( _
	code As CicaIncidentalCode, _
	baseAmount As Decimal, _
	percentage As Decimal _
)
Visual C++
public:
Incidental(
	CicaIncidentalCode code, 
	Decimal baseAmount, 
	Decimal percentage
)

Parameters

code
Type: BargeEx..::.CicaIncidentalCode
The type of incidental to create.
baseAmount
Type: System..::.Decimal
The base amount used to calculate the cost of the incidental.
percentage
Type: System..::.Decimal
The percentage of the base amount that will be charged for this incidental.

Remarks

The constructor initializes an Incidental object with the Code property set to code, the RateType property set to PercentageRate, the PercentageRateBaseAmount property set to baseAmount, and the PercentageRatePercentage property set to percentage.

The cost of this incidental is calculated as follows:
Cost = baseAmount * percentage

See Also