QuickBooks Integrator 2020 Node.js Edition

Questions / Feedback?

SickTimeAccrualPeriod Property

Indicates how an employee accrues time off.

Syntax

 employee.getSickTimeAccrualPeriod([callback])
 employee.setSickTimeAccrualPeriod( sickTimeAccrualPeriod, [callback])

Possible Values

  0 (stNone), 
  1 (stBeginningOfYear), 
  2 (stEveryHourOnPaycheck), 
  3 (stEveryPaycheck)

Default Value

0

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getSickTimeAccrualPeriod([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setSickTimeAccrualPeriod([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

Indicates how an employee accrues time off. If sending time off hours data in an Update request, SickTimeAccrualPeriod is a required property, and cannot be set to stNone. The default value is whatever the QuickBooks user has set in the QuickBooks Employee Preferences.

Valid values:

stNone (0) No value set.
stBeginningOfYear (1) Time off is added at the beginning of each year.
stEveryHourOnPaycheck (2) Time off is calculated by the employee's working hours.
stEveryPaycheck (3) Time off is accumulated for every paycheck.

Data Type

Integer

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 Node.js Edition - Version 20.0 [Build 7941]