This commit is contained in:
MUHD HAFIFIE
2021-04-11 10:24:28 +08:00
+4 -1
View File
@@ -216,7 +216,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;