From 9cc829312e35109a579a64acc6f8d8662b482ec0 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Wed, 23 Nov 2022 14:03:59 +0700 Subject: [PATCH] rounding decimal to two --- edit-mode/function/ganttConfig.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edit-mode/function/ganttConfig.js b/edit-mode/function/ganttConfig.js index 0768359..be64cdc 100644 --- a/edit-mode/function/ganttConfig.js +++ b/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