PTOD - Payroll period to date conversion (Payroll Report Generator function)

From Catalyst
Jump to: navigation, search

Syntax

$PTOD{year, prd, freq, ind}

Description

Return the start/end date for a given period.

Parameters

year
A numeric parameter that can be omitted.
The payroll year start, if left blank the current start of the payroll year will be used.
prd
A numeric parameter that can be omitted (it defaults to "1").
The period.
freq
A text parameter that can be omitted (it defaults to "W").
M
Monthly.
W
Weekly.
4
4 Weekly.
F
Fortnightly.
ind
A text parameter that can be omitted (it defaults to "F").
F
From Date. This start of the year/period.
T
To Date. This end of the year/period.

Returns

A numeric value. Date.