warmFix change if #2587
|
@ -3861,3 +3861,17 @@ INSERT INTO vn.sectorCollectionSaleGroup
|
||||||
SET id = 9,
|
SET id = 9,
|
||||||
sectorCollectionFk = 3,
|
sectorCollectionFk = 3,
|
||||||
saleGroupFk = 6;
|
saleGroupFk = 6;
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO `vn`.`calendarHolidays` (calendarHolidaysTypeFk, dated, calendarHolidaysNameFk, workCenterFk)
|
||||||
|
VALUES
|
||||||
|
(1, '2001-05-08', 1, 1),
|
||||||
|
(1, '2001-05-09', 1, 1),
|
||||||
|
(1, '2001-05-10', 1, 1),
|
||||||
|
(1, '2001-05-11', 1, 1),
|
||||||
|
(1, '2001-05-14', 1, 5),
|
||||||
|
(1, '2001-05-15', 1, 5),
|
||||||
|
(1, '2001-05-16', 1, 5),
|
||||||
|
(1, '2001-05-17', 1, 5),
|
||||||
|
(1, '2001-05-18', 1, 5);
|
||||||
|
|
||||||
|
|
|
@ -229,8 +229,8 @@
|
||||||
"InvoiceIn is already booked": "InvoiceIn is already booked",
|
"InvoiceIn is already booked": "InvoiceIn is already booked",
|
||||||
"This workCenter is already assigned to this agency": "This workCenter is already assigned to this agency",
|
"This workCenter is already assigned to this agency": "This workCenter is already assigned to this agency",
|
||||||
"You can only have one PDA": "You can only have one PDA",
|
"You can only have one PDA": "You can only have one PDA",
|
||||||
"Incoterms and Customs agent are required for a non UEE member": "Incoterms and Customs agent are required for a non UEE member",
|
"Incoterms and Customs agent are required for a non UEE member": "Incoterms and Customs agent are required for a non UEE member",
|
||||||
"It has been invoiced but the PDF could not be generated": "It has been invoiced but the PDF could not be generated",
|
"It has been invoiced but the PDF could not be generated": "It has been invoiced but the PDF could not be generated",
|
||||||
"It has been invoiced but the PDF of refund not be generated": "It has been invoiced but the PDF of refund not be generated"
|
"It has been invoiced but the PDF of refund not be generated": "It has been invoiced but the PDF of refund not be generated",
|
||||||
|
"Cannot add holidays on this day": "Cannot add holidays on this day"
|
||||||
}
|
}
|
|
@ -110,8 +110,7 @@ module.exports = Self => {
|
||||||
workCenterFk: workCenter.workCenterFk
|
workCenterFk: workCenter.workCenterFk
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if ((holiday && isFestive) && (workCenter.workcenterFk === holiday.workCenterFk))
|
||||||
if (holiday && isFestive)
|
|
||||||
throw new UserError(`Cannot add holidays on this day`);
|
throw new UserError(`Cannot add holidays on this day`);
|
||||||
|
|
||||||
const absence = await models.Calendar.create({
|
const absence = await models.Calendar.create({
|
||||||
|
|
Loading…
Reference in New Issue