daripada server

This commit is contained in:
e.arrahn
2021-05-19 16:39:23 +08:00
parent c16c006cbd
commit 82708b046c
2 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -155,7 +155,7 @@ class TebusController extends Controller
$rebet = ($margin_kadarupah-$margin_pinjaman)/$margin_kadarupah * $upah_asal;
$upah_sebenar = $upah_asal - $rebet;
$upahsemasa = $upah_sebenar * $gadai_data['jbg'];
$upahsemasa = $upah_sebenar * $gadai_data['tempoh'];
$upah_semasa = bcdiv(round($upahsemasa,2),1,1);
$upah_semasa = number_format($upah_semasa,2);
if(strpos($upah_semasa,',')){
@@ -185,7 +185,7 @@ class TebusController extends Controller
$rebet = ($margin_kadarupah-$margin_pinjaman)/$margin_kadarupah * $upah_asal;
$upah_sebenar = $upah_asal - $rebet;
$upahsemasa = $upah_sebenar * $gadai_data['jbg'];
$upahsemasa = $upah_sebenar * $gadai_data['tempoh'];
$upah_semasa = bcdiv(round($upahsemasa,2),1,1);
$upah_semasa = number_format($upah_semasa,2);
if(strpos($upah_semasa,',')){