added new kuantiti function
This commit is contained in:
@@ -78,7 +78,7 @@ class MarhunController extends Controller
|
|||||||
'kodcaw'=> $kodcaw,
|
'kodcaw'=> $kodcaw,
|
||||||
'norujukan'=> $request->norujukan,
|
'norujukan'=> $request->norujukan,
|
||||||
't_gadai' => $current->toDateString(),
|
't_gadai' => $current->toDateString(),
|
||||||
'bil' => 1,
|
'bil' => $request->kuantiti,
|
||||||
'marhun' => $request->marhun,
|
'marhun' => $request->marhun,
|
||||||
'nota' => $request->nota,
|
'nota' => $request->nota,
|
||||||
'tag_permata' => $request->tag_permata != null ? $request->tag_permata : 0,
|
'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_batu_permata' => $request->berat_batu_permata,
|
||||||
'berat' => $request->berat,
|
'berat' => $request->berat,
|
||||||
'harga' => $harga['harga'],
|
'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
|
// Set value berat_batu_permata to null if value passed is null
|
||||||
|
|||||||
Reference in New Issue
Block a user