This commit is contained in:
parent
371df19194
commit
8637488fc1
|
@ -1,7 +1,7 @@
|
||||||
-- Place your SQL code here
|
-- Place your SQL code here
|
||||||
ALTER TABLE vn.absenceType ADD isFestiveEligible BOOL DEFAULT 1 NOT NULL COMMENT 'Para marcar un tipo de absence';
|
ALTER TABLE vn.absenceType ADD isFestiveEligible BOOL DEFAULT 1 NOT NULL COMMENT 'Para marcar un tipo de absence';
|
||||||
|
|
||||||
UPDATE absenceType
|
UPDATE vn.absenceType
|
||||||
SET isFestiveEligible = 0
|
SET isFestiveEligible = 0
|
||||||
WHERE code = 'holiday';
|
WHERE code = 'holiday';
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ module.exports = Self => {
|
||||||
const hasHalfHoliday = result.halfHolidayCounter > 0;
|
const hasHalfHoliday = result.halfHolidayCounter > 0;
|
||||||
const isHalfHoliday = absenceType.code === 'halfHoliday';
|
const isHalfHoliday = absenceType.code === 'halfHoliday';
|
||||||
|
|
||||||
const isFestive = absenceType.isFestive;
|
const isFestive = absenceType.isFestiveEligible;
|
||||||
|
|
||||||
const workCenter = await models.Business.findOne({
|
const workCenter = await models.Business.findOne({
|
||||||
where: {id: args.businessFk}
|
where: {id: args.businessFk}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
"holidayEntitlementRate": {
|
"holidayEntitlementRate": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"isFestive": {
|
"isFestiveEligible": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue