This commit is contained in:
hafifierahman
2021-01-09 19:49:53 +08:00
parent 8df2183d8f
commit a76f15602f
5 changed files with 30 additions and 1 deletions
+12 -1
View File
@@ -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);
}
}