From b281eedafe7288e74579817a078238b0011c342c Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Thu, 1 Aug 2024 12:47:19 +0200 Subject: [PATCH] fix faelligketi input --- .../src/main/webapp/js/imixs-office.workitem.custom.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/office-alexander-logistics-app/src/main/webapp/js/imixs-office.workitem.custom.js b/office-alexander-logistics-app/src/main/webapp/js/imixs-office.workitem.custom.js index ba5eb52..8e8e7e2 100644 --- a/office-alexander-logistics-app/src/main/webapp/js/imixs-office.workitem.custom.js +++ b/office-alexander-logistics-app/src/main/webapp/js/imixs-office.workitem.custom.js @@ -29,8 +29,7 @@ function initFaelligkeit(ajax_event) { var basisYear = parts[2]; var basisDate = new Date(basisYear, basisMonth, basisDay); var newDate = new Date(basisYear, basisMonth, basisDay); - let tageVerschiebung = 10; - newDate.setDate(newDate.getDate() + tageVerschiebung); + newDate.setDate(newDate.getDate() + (Number(days))); var day = '' + newDate.getDate(); if (day.length == 1) {