fix kelulusan
This commit is contained in:
@@ -413,7 +413,7 @@ class GadaianController extends Controller
|
||||
$wakil = [];
|
||||
}
|
||||
|
||||
return view('print.resittebussebelum',compact('gadai','customers_info','penebusan','wakil','totaltransaction'));
|
||||
return view('print.resittebussebelum',compact('gadai','customers_info','penebusan','wakil'));
|
||||
}
|
||||
|
||||
public function history(Request $request)
|
||||
@@ -425,6 +425,7 @@ class GadaianController extends Controller
|
||||
if(sizeof($gadai) > 0)
|
||||
$history = $gadai[0][0]['historygadaian'];
|
||||
|
||||
|
||||
$count = 0;
|
||||
$arrayhist = [];
|
||||
|
||||
@@ -436,7 +437,7 @@ class GadaianController extends Controller
|
||||
"norujukan" => $history
|
||||
])->json();
|
||||
|
||||
array_push($arrayhist,["norujukan" => $history,"jenistebus" => $tebus[0]['jenistebus'],"jbg" => $tebus[0]['jbg'],"t_tebus" => $tebus[0]['t_tebus']]);
|
||||
array_push($arrayhist,["norujukan" => $history,"jenistebus" => ((isset($tebus[0])) ? $tebus[0]['jenistebus'] : 0),"jbg" => ((isset($tebus[0])) ? $tebus[0]['jbg'] : 0),"t_tebus" => ((isset($tebus[0])) ? $tebus[0]['t_tebus'] : 0)]);
|
||||
|
||||
if(sizeof($gadai) > 0)
|
||||
$history = $gadai[0][0]['historygadaian'];
|
||||
@@ -504,7 +505,7 @@ class GadaianController extends Controller
|
||||
'teller' => $auth_user['name']
|
||||
])->json();
|
||||
|
||||
event(new StatusLiked('Penghantaran kepada Khazanah!'));
|
||||
event(new StatusLiked($auth_user['cawangan'],$auth_user['name']));
|
||||
|
||||
return response()->json($createlulus,201);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user