fix rebet

This commit is contained in:
Afiq Zakwan Hamdan
2021-04-11 10:21:38 +08:00
parent 076885f205
commit 40cf314d45
+4 -1
View File
@@ -214,7 +214,10 @@ class TebusController extends Controller
$rebet_raw = $bln_tebus_awl * (($gadai_data['kadarupah']/100 )* $gadai_data['pinjaman']);
$rebet_round = number_format($upahsemasa_raw,2);
$rebet_round = number_format($rebet_raw,2);
if(strpos($rebet_round,',')){
$rebet_round = str_replace(',','',$rebet_round);
}
$rebet = (float)substr($rebet_round, 0, -1);
return $rebet;