Browse Source

cek baseline before changing lag

pull/1/head
Wahyu Ramadhan 1 year ago
parent
commit
440b6272f1
  1. 2
      edit-mode/function/function.js

2
edit-mode/function/function.js

@ -717,7 +717,7 @@ function updateLinksLag(data) {
let predecessor = data.data.find(item => item.id == link.source); let predecessor = data.data.find(item => item.id == link.source);
if (predecessor) { if (predecessor) {
let lag = gantt.calculateDuration(new Date(predecessor.end_date), new Date(task.start_date)); let lag = gantt.calculateDuration(new Date(predecessor.end_date), new Date(task.start_date));
if (link.type == "0") { if (link.type == "0" && isBaselineSet) {
link.lag = lag; link.lag = lag;
} }
} }

Loading…
Cancel
Save