From 7e2a3f8b45860160aa0568441e6c693db46f9f1c Mon Sep 17 00:00:00 2001 From: Hafifie PKB Date: Sun, 10 Mar 2024 16:34:42 +0800 Subject: [PATCH] fix two decimal places --- app/Support/v2/Calculation.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Support/v2/Calculation.php b/app/Support/v2/Calculation.php index 7c3d570..fb05085 100644 --- a/app/Support/v2/Calculation.php +++ b/app/Support/v2/Calculation.php @@ -62,8 +62,8 @@ class Calculation $onepercent = $this->kiraanOnePercent($pembiayaan); $ujrah_sebenar = $this->kiraanUjrahSebenar($nilaimarhun,$kadarujrah,$margin); - // $onepercent = $this->getRoundedMethod($onepercent); - // $ujrah_sebenar = $this->getRoundedMethod($ujrah_sebenar); + $onepercent = $this->getRoundedMethod($onepercent); + $ujrah_sebenar = $this->getRoundedMethod($ujrah_sebenar); $keuntungan = $onepercent + $ujrah_sebenar; @@ -75,8 +75,8 @@ class Calculation $this->one_percent = $this->getKadarUpah($nilaimarhun); $onepercent = $this->kiraanOnePercent($pembiayaan); $ujrah_sebenar = $this->kiraanUjrah($nilaimarhun,$kadarujrah,$margin); - // $onepercent = $this->getRoundedMethod($onepercent); - // $ujrah_sebenar = $this->getRoundedMethod($ujrah_sebenar); + $onepercent = $this->getRoundedMethod($onepercent); + $ujrah_sebenar = $this->getRoundedMethod($ujrah_sebenar); $keuntungan = $onepercent + $ujrah_sebenar;