From 959b49d7032881da28cf2646db55a99e53b47fa8 Mon Sep 17 00:00:00 2001 From: afiq Date: Wed, 9 Feb 2022 01:18:34 +0800 Subject: [PATCH] fix ubah marhun --- app/Http/Controllers/MarhunController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/MarhunController.php b/app/Http/Controllers/MarhunController.php index 140f89c..78ba310 100644 --- a/app/Http/Controllers/MarhunController.php +++ b/app/Http/Controllers/MarhunController.php @@ -127,7 +127,7 @@ class MarhunController extends Controller $current = new Carbon(); $harga = HargaEmas::on('mysql7')->where('karat',$request->karat)->first(); - $nilai_marhun = $request->berat_emas * $harga['harga']; + $nilai_marhun = $request->berat * $harga['harga']; $cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();