This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-11-08 15:59:21 +08:00
parent ba7e18eee1
commit 4f463412b0
11 changed files with 325 additions and 45 deletions
+1 -18
View File
@@ -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,