From 843778078003900b1f7758bc102db7db55d36e5c Mon Sep 17 00:00:00 2001 From: Hafifie PKB Date: Sun, 19 May 2024 11:37:56 +0800 Subject: [PATCH] added new kuantiti function --- app/Http/Controllers/MarhunController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/MarhunController.php b/app/Http/Controllers/MarhunController.php index 544119c..7faa358 100644 --- a/app/Http/Controllers/MarhunController.php +++ b/app/Http/Controllers/MarhunController.php @@ -78,7 +78,7 @@ class MarhunController extends Controller 'kodcaw'=> $kodcaw, 'norujukan'=> $request->norujukan, 't_gadai' => $current->toDateString(), - 'bil' => 1, + 'bil' => $request->kuantiti, 'marhun' => $request->marhun, 'nota' => $request->nota, 'tag_permata' => $request->tag_permata != null ? $request->tag_permata : 0, @@ -170,7 +170,8 @@ class MarhunController extends Controller 'berat_batu_permata' => $request->berat_batu_permata, 'berat' => $request->berat, 'harga' => $harga['harga'], - 'n_marhun' => $nilai_marhun + 'n_marhun' => $nilai_marhun, + 'bil' => $request->kuantiti, ]; // Set value berat_batu_permata to null if value passed is null