Browse Source

Quick fix

pull/1/head
Wahyu Ramadhan 2 years ago
parent
commit
ebac1930ed
  1. 3
      edit-mode/function/ganttConfig.js

3
edit-mode/function/ganttConfig.js

@ -349,7 +349,8 @@ var allColumns = [
} }, } },
// { name: "status", label: "Status", align: "center", editor: editor.status, resize: true }, // { name: "status", label: "Status", align: "center", editor: editor.status, resize: true },
{ name: "bobot_planning", label: "Bobot Activity (%)", align: "center", editor: editor.bobot_planning, resize: true, min_width: 115, template: function (text) { { name: "bobot_planning", label: "Bobot Activity (%)", align: "center", editor: editor.bobot_planning, resize: true, min_width: 115, template: function (text) {
if(text.bobot_planning.toFixed(2) > 100){ let bobot = parseFloat(text.bobot_planning);
if(bobot.toFixed(2) > 100){
gantt.alert("Bobot tidak boleh lebih dari 100%!"); gantt.alert("Bobot tidak boleh lebih dari 100%!");
return; return;
} }

Loading…
Cancel
Save