Browse Source

rounding decimal to two

pull/1/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
9cc829312e
  1. 6
      edit-mode/function/ganttConfig.js

6
edit-mode/function/ganttConfig.js

@ -260,14 +260,14 @@ var allColumns = [
if(!text.rencana_biaya){
return
}
let rencana_biaya = text.rencana_biaya
let rencana_biaya = roundToTwo(text.rencana_biaya)
return "Rp. "+ formatRupiah(rencana_biaya)
} },
{ name: "cost_actual", label: "Cost Actual", align: "right", min_width: 100, resize: true, template: function (text) {
if(!text.biaya_actual){
return
}
let biaya_actual = text.biaya_actual
let biaya_actual = roundToTwo(text.biaya_actual)
return "Rp. "+ formatRupiah(biaya_actual)
} },
{ name: "assign_hr", label: "Assign To", align: "center", min_width: 150, resize: true, template: function (text) {
@ -357,7 +357,7 @@ var allColumns = [
{ name: "progress", label: "Actual Progress (%)", align: "center", min_width: 125, template: function (text) {
let progress = text.progress
progress = progress*100
return progress;
return roundToTwo(progress);
}, resize: true },
{ name:"progress_actual", label: "Total Actual Progress (%)", align: "center", min_width: 150, template: function (text) {
let progress = text.progress

Loading…
Cancel
Save