This commit is contained in:
e.arrahn
2021-12-01 08:15:07 +08:00
parent 97dfa7474f
commit fc6401dc09
5 changed files with 19 additions and 6 deletions
+3 -2
View File
@@ -24,6 +24,7 @@ use App\Moratorium;
use App\Audit;
use App\Customer;
use App\KomuditiPurchase;
use App\Advansur;
use App\KomuditiTransaksi;
use App\Advansur;
use App\HistoryEmasSandaran;
@@ -310,8 +311,8 @@ class GadaiController extends Controller
$upahsemasa_raw = $bilang_bln * (($gadai_data['kadarupah']/100 )* $gadai_data['pinjaman']);
$upah_semasa_round = number_format($upahsemasa_raw,2);
$upah_semasa = (float)substr($upah_semasa_round, 0, -1);
$upah_semasa = substr($upah_semasa_round, 0, -1);
$upah_semasa = floatval(preg_replace('/[^\d.]/', '', $upah_semasa));
return $upah_semasa;
}