[PD] - Period Days

26-Aug-2022 · Felix Fung
其他語言版本 English

What is this?

"PD" stands for "Period Days". This payroll variable returns the number of days in the Pay Period.

What will the Value be Returned?

Returns the number of days in the payroll Pay Period. Pay Period means the date range of the Payroll Batch, normally would be the 1st day to the last day of the month.

Usage

Hightlight part content can be changed

1. Basic Form

Payroll Variable Description Usage
[PD] Take the number of days within the Pay Period Usually as a component to calculate the unit rate, e.g Daily Rate of the Basic Salary(Monthly Salary $15,000 in Jun)
[PR]*/[PD] *[PR] for amount set in the Placement profile
= 15000/30 = 500 show as unit rate in Payroll

2. Parameters/Variations

Parameters/Variations Description Usage
M-1 Take the number of days in the Previous Month [PR(M-1)]
30_DAYS
DAY_OF_WEEK=Number

Number: 0-6
0=Sun, 1=Mon, 2=Tue, 3=Wed, 4=Thur, 5=Fri, 6=Sat
Take the number of days of the Week within the Pay Period Take the number of Sundays within the Pay Period
[PD(DAY_OF_WEEK=0)]

"|" to count more than one days of the Week, e.g Monday, Tuesday and Wednesday
[PD(DAY_OF_WEEK=1|2|3)]
WEEKDAY Take the number of Weekdays within the Pay Period [PR(WEEKDAY)]
{"status":"error","code":2,"details":null,"message":"An unexpected error occurred! Enable debug mode for more info: https:\/\/getkirby.com\/docs\/reference\/system\/options\/debug"}{"status":"error","code":32,"details":null,"message":"An unexpected error occurred! Enable debug mode for more info: https:\/\/getkirby.com\/docs\/reference\/system\/options\/debug"}