Class PayrunEmployeeAvailableFunction
Test if an employee is available (default: true) for a payrun
Implements
Inherited Members
Namespace: PayrollEngine.Client.Scripting.Function
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class PayrunEmployeeAvailableFunction : PayrunFunction, IDisposable
Examples
// Example with employee case value
(int)Employee["Level"] >= 2
// Example with payrun period
PeriodStart.Month == 12
Constructors
PayrunEmployeeAvailableFunction(object)
Initializes a new instance with the function runtime
Declaration
public PayrunEmployeeAvailableFunction(object runtime)
Parameters
| Type | Name | Description |
|---|---|---|
| object | runtime | The runtime |
PayrunEmployeeAvailableFunction(string)
New function instance without runtime (scripting development)
Declaration
protected PayrunEmployeeAvailableFunction(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
Methods
IsAvailable()
Entry point for the runtime
Declaration
public bool? IsAvailable()
Returns
| Type | Description |
|---|---|
| bool? |
Remarks
Internal usage only, do not call this method