";
}
- htmlContent += "" + e.Order + " | ";
+ htmlContent += "" + task.Order + " | ";
htmlContent += " | ";
htmlContent += "";
- for (let i=0; i";
}
- htmlContent += "";
+ htmlContent += "";
htmlContent += " | ";
- htmlContent += "" + e.Duration + " day" + (parseInt(e.Duration) == 1 ? "" : "s") + " | ";
- htmlContent += "" + new Date(e.StartDate).toLocaleDateString() + " | ";
- htmlContent += "" + new Date(e.FinishDate).toLocaleDateString() + " | ";
- htmlContent += "" + (e.PredecessorTaskNo ?? "") + " | ";
+ htmlContent += "" + task.Duration + " day" + (parseInt(task.Duration) == 1 ? "" : "s") + " | ";
+ htmlContent += "" + new Date(task.StartDate).toLocaleDateString() + " | ";
+ htmlContent += "" + new Date(task.FinishDate).toLocaleDateString() + " | ";
+ htmlContent += "" + (task.PredecessorTaskNo ?? "") + " | ";
htmlContent += " | ";
htmlContent += " | ";
htmlContent += "
";
diff --git a/src/project/project.js b/src/project/project.js
index ea7bd16..682f6e0 100644
--- a/src/project/project.js
+++ b/src/project/project.js
@@ -6,6 +6,7 @@ class Project {
const a = this;
const _options = Object.assign(a.DefaultOptions, options);
+ a.Debug = false;
a.Project = _options;
a.Tasks = [];
}
@@ -124,7 +125,7 @@ class Project {
}
}
- ClearTasks() {
+ Clear() {
const a = this;
a.Tasks = [];
@@ -342,7 +343,11 @@ class Project {
}
#log(message) {
- console.log(message);
+ const a = this;
+
+ if (a.Debug) {
+ console.log(message);
+ }
}
#recalculateWorkHours(array) {