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

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

Syntax

C#
public Incidental(
	CicaIncidentalCode code,
	decimal unitAmount,
	decimal quantity,
	CicaUnitRateQuantityUnitCode quantityUnitCode
)
Visual Basic (Declaration)
Public Sub New ( _
	code As CicaIncidentalCode, _
	unitAmount As Decimal, _
	quantity As Decimal, _
	quantityUnitCode As CicaUnitRateQuantityUnitCode _
)
Visual C++
public:
Incidental(
	CicaIncidentalCode code, 
	Decimal unitAmount, 
	Decimal quantity, 
	CicaUnitRateQuantityUnitCode quantityUnitCode
)

Parameters

code
Type: BargeEx..::.CicaIncidentalCode
The type of incidental to create.
unitAmount
Type: System..::.Decimal
The per unit cost of this incidental.
quantity
Type: System..::.Decimal
The number of units related to this incidental.
quantityUnitCode
Type: BargeEx..::.CicaUnitRateQuantityUnitCode
The unit of measure or unit code for quantity.

Remarks

The constructor initializes an Incidental object with the Code property set to code, the RateType property set to UnitRate, the UnitRateUnitAmount property set to unitAmount, the UnitRateQuantity property set to quantity, and the UnitRateQuantityUnitCode property set to quantityUnitCode.

The cost of this incidental is calculated as follows:
Cost = unitAmount * quantity

See Also