fix thousand separator
This commit is contained in:
@@ -67,7 +67,7 @@ class TebusController extends Controller
|
||||
if(strpos($upah_semasa_round,',')){
|
||||
$upah_semasa_round = str_replace(',','',$upah_semasa_round);
|
||||
}
|
||||
$upah_semasa = (float)substr($upah_semasa_round, 0, -1);
|
||||
$upah_semasa = substr($upah_semasa_round, 0, -1);
|
||||
if(strpos($upah_semasa,',')){
|
||||
$upah_semasa = str_replace(',','',$upah_semasa);
|
||||
}
|
||||
@@ -92,7 +92,7 @@ class TebusController extends Controller
|
||||
if(strpos($upah_rebet_round,',')){
|
||||
$upah_rebet_round = str_replace(',','',$upah_rebet_round);
|
||||
}
|
||||
$upah_rebet = (float)substr($upah_rebet_round, 0, -1);
|
||||
$upah_rebet = substr($upah_rebet_round, 0, -1);
|
||||
if(strpos($upah_rebet,',')){
|
||||
$upah_rebet = str_replace(',','',$upah_rebet);
|
||||
}
|
||||
@@ -117,7 +117,7 @@ class TebusController extends Controller
|
||||
if(strpos($upah_rebet_round,',')){
|
||||
$upah_rebet_round = str_replace(',','',$upah_rebet_round);
|
||||
}
|
||||
$upah_rebet = (float)substr($upah_rebet_round, 0, -1);
|
||||
$upah_rebet = substr($upah_rebet_round, 0, -1);
|
||||
if(strpos($upah_rebet,',')){
|
||||
$upah_rebet = str_replace(',','',$upah_rebet);
|
||||
}
|
||||
@@ -173,7 +173,7 @@ class TebusController extends Controller
|
||||
|
||||
$total_harga_tebus_round = round($total_harga_tebus,2);
|
||||
|
||||
$totalhargatebus = (float)substr($total_harga_tebus_round, 0, -1);
|
||||
$totalhargatebus = substr($total_harga_tebus_round, 0, -1);
|
||||
|
||||
return response()->json($totalhargatebus);
|
||||
}
|
||||
@@ -363,7 +363,7 @@ class TebusController extends Controller
|
||||
if(strpos($rebet_round,',')){
|
||||
$rebet_round = str_replace(',','',$rebet_round);
|
||||
}
|
||||
$rebet = (float)substr($rebet_round, 0, -1);
|
||||
$rebet = substr($rebet_round, 0, -1);
|
||||
|
||||
return $rebet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user