history
This commit is contained in:
@@ -40,6 +40,7 @@ class TebusController extends Controller
|
||||
$totalBayaranKeuntungan = 0;
|
||||
$totalBayaran = 0;
|
||||
|
||||
|
||||
foreach($transaction as $index=>$trans){
|
||||
$totalBayaran += $trans['duit_masuk'];
|
||||
}
|
||||
@@ -349,5 +350,15 @@ class TebusController extends Controller
|
||||
|
||||
return response()->json($wakil_create ,201);
|
||||
}
|
||||
|
||||
|
||||
public function listhistorypenebusan($kodcaw,Request $request)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$listtebus = Tebus::on($cawangan['mysql'])
|
||||
->where('norujukan','=',$request->norujukan)
|
||||
->get();
|
||||
|
||||
return response()->json($listtebus);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user