gadael/gadael

View on GitHub
api/specialrights/annualleave.js

Summary

Maintainability
A
1 hr
Test Coverage
'use strict';

const SpecialRight = require('./specialright');

/**
 * Right for "reduction du temps de travail"
 *
 * @constructor
 * @augments specialright
 */
function AnnualLeave(app) {
    SpecialRight.call(this, app);

    this.editQuantity = true;

    this.countries = ['FR', 'BE', 'DE', 'UK'];
}

AnnualLeave.prototype = Object.create(SpecialRight.prototype);
AnnualLeave.prototype.constructor = AnnualLeave;


AnnualLeave.prototype.getName = function() {
    const gt = this.app.utility.gettext;
    return gt.gettext('Annual paid leave');
};


AnnualLeave.prototype.getDescription = function() {
    const gt = this.app.utility.gettext;
    return gt.gettext("Paid time off work granted by employers to employees to be used for whatever the employee wishes. Depending on the employer's policies, differing number of days may be offered, and the employee may be required to give a certain amount of advance notice");
};


exports = module.exports = AnnualLeave;