add api
This commit is contained in:
@@ -43,23 +43,6 @@ class MarhunController extends Controller
|
||||
$current = Carbon::now();
|
||||
$current = new Carbon();
|
||||
|
||||
$nota = "";
|
||||
if($request->rosak != ""){
|
||||
$nota = $nota . $request->rosak;
|
||||
}
|
||||
if($request->putus != ""){
|
||||
$nota = $nota . ', ' . $request->putus;
|
||||
}
|
||||
if($request->patah != ""){
|
||||
$nota = $nota . ', ' . $request->patah;
|
||||
}
|
||||
if($request->permata != ""){
|
||||
$nota = $nota . ', ' . $request->permata;
|
||||
}
|
||||
if($request->sebelah != ""){
|
||||
$nota = $nota . ', ' . $request->sebelah;
|
||||
}
|
||||
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
$marhun = Marhun::on($cawangan['mysql'])->create([
|
||||
'kodcaw'=> $kodcaw,
|
||||
@@ -67,7 +50,7 @@ class MarhunController extends Controller
|
||||
't_gadai' => $current->toDateString(),
|
||||
'bil' => 1,
|
||||
'marhun' => $request->marhun,
|
||||
'nota' => $nota,
|
||||
'nota' => $request->nota,
|
||||
'karat' => $request->karat,
|
||||
'berat' => $request->berat_emas,
|
||||
'harga' => $request->harga,
|
||||
|
||||
Reference in New Issue
Block a user