Class CollectorApplyFunction
Apply value to a collector (default: wage type value)
Implements
Inherited Members
Namespace: PayrollEngine.Client.Scripting.Function
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class CollectorApplyFunction : CollectorFunction, IDisposable
Examples
// Example restricted input wage type value
System.Math.Max(WageTypeValue, 5000)
// Example restricted to a wage type
WageTypeNumber == 2250 ? WageTypeValue : null
// Example restricted to the collector summary
CollectorSum + WageTypeValue > 10000 ? 10000 - CollectorSum + WageTypeValue : WageTypeValue
Constructors
CollectorApplyFunction(object)
Initializes a new instance with the function runtime
Declaration
public CollectorApplyFunction(object runtime)
Parameters
| Type | Name | Description |
|---|---|---|
| object | runtime | The runtime |
CollectorApplyFunction(string)
New function instance without runtime (scripting development)
Declaration
protected CollectorApplyFunction(string sourceFileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sourceFileName | The name of the source file |
Remarks
Use GetSourceFileName(string) in your constructor for the source file name
Properties
WageTypeName
The wage type name
Declaration
[ActionProperty("Wage type name", null)]
public string WageTypeName { get; }
Property Value
| Type | Description |
|---|---|
| string |
WageTypeNumber
The wage type number
Declaration
[ActionProperty("Wage type number", null)]
public decimal WageTypeNumber { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
WageTypeValue
The wage type result value
Declaration
[ActionProperty("Wage type value", null)]
public decimal WageTypeValue { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Methods
GetValue()
Entry point for the runtime
Declaration
public object GetValue()
Returns
| Type | Description |
|---|---|
| object |
Remarks
Internal usage only, do not call this method