VacationTimeAccrualPeriod Property
Indicates how an employee accrues time off.
Syntax
employee.getVacationTimeAccrualPeriod([callback]) employee.setVacationTimeAccrualPeriod( vacationTimeAccrualPeriod, [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 getVacationTimeAccrualPeriod([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 setVacationTimeAccrualPeriod([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, VacationTimeAccrualPeriod 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