Class PayrunWageTypeAvailableFunction
Test if a wage type is available (default: true) for a payrun
Implements
Inherited Members
Namespace: PayrollEngine.Client.Scripting.Function
Assembly: PayrollEngine.Client.Scripting.dll
Syntax
public class PayrunWageTypeAvailableFunction : PayrunFunction, IDisposable
Examples
// Example with payrun period
WageTypeNumber == 2250 && PeriodStart.Month == 12
Constructors
PayrunWageTypeAvailableFunction(object)
Initializes a new instance with the function runtime
Declaration
public PayrunWageTypeAvailableFunction(object runtime)
Parameters
| Type | Name | Description |
|---|---|---|
| object | runtime | The runtime |
PayrunWageTypeAvailableFunction(string)
New function instance without runtime (scripting development)
Declaration
protected PayrunWageTypeAvailableFunction(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
WageTypeNumber
The wage type number
Declaration
public decimal WageTypeNumber { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Methods
GetWageTypeAttribute(string)
Get wage type attribute value
Declaration
public object GetWageTypeAttribute(string attributeName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | attributeName |
Returns
| Type | Description |
|---|---|
| object |
GetWageTypeAttribute<T>(string, T)
Get wage type attribute typed value
Declaration
public T GetWageTypeAttribute<T>(string attributeName, T defaultValue = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | attributeName | |
| T | defaultValue |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
IsAvailable()
Entry point for the runtime
Declaration
public bool? IsAvailable()
Returns
| Type | Description |
|---|---|
| bool? |
Remarks
Internal usage only, do not call this method