fix thousand separator

This commit is contained in:
afiq
2022-02-06 06:53:36 +08:00
parent 5c302f87db
commit 4248bbf801
3 changed files with 9 additions and 9 deletions
@@ -128,7 +128,7 @@ class TransactionOnlineController extends Controller
$upahrebet_raw = $bilang_bln * (($gadai_data['kadarupah']/100 )* $gadai_data['bakipjm']);
$upah_rebet_round = number_format($upahrebet_raw,2);
$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);
}