Scale.SetUnitPriceWithWeightUnit Method (POS for .NET v1.14 SDK Documentation)
3/2/2014
Calculates a new unit price based on a conversion factor that translates old unit prices into new ones.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub SetUnitPriceWithWeightUnit ( _
unitPrice As Decimal, _
weightUnit As Integer, _
weightNumerator As Integer, _
weightDenominator As Integer _
)
public abstract void SetUnitPriceWithWeightUnit (
decimal unitPrice,
int weightUnit,
int weightNumerator,
int weightDenominator
)
public:
virtual void SetUnitPriceWithWeightUnit (
Decimal unitPrice,
int weightUnit,
int weightNumerator,
int weightDenominator
) abstract
public abstract void SetUnitPriceWithWeightUnit (
Decimal unitPrice,
int weightUnit,
int weightNumerator,
int weightDenominator
)
public abstract function SetUnitPriceWithWeightUnit (
unitPrice : decimal,
weightUnit : int,
weightNumerator : int,
weightDenominator : int
)
Parameters
- unitPrice
The new cost per unit price.
- weightUnit
The new WeightUnit which is different than the default unit of weight for the scale.
- weightNumerator
The multiplier of the weight based on the new unit weight.
- weightDenominator
The divisor of the weight based on the new unit weight.
Remarks
This method may cause a PosControlException to be thrown with the following error codes:
Value |
Meaning |
E_ILLEGAL |
The current state of the scale device does not allow operation, or parameters are invalid. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.
See Also
Reference
Scale Class
Scale Members
Microsoft.PointOfService Namespace