added new kuantiti function

This commit is contained in:
Hafifie PKB
2024-05-19 11:37:56 +08:00
parent 7b08b81bf9
commit 8437780780
+3 -2
View File
@@ -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