change recent
This commit is contained in:
@@ -79,6 +79,31 @@ class MarhunController extends Controller
|
||||
return response('Deleted Successfully', 200);
|
||||
}
|
||||
|
||||
public function deletemarhun($kodcaw,$norujukan,Request $request)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$jemas = Marhun::on($cawangan['mysql'])->where([['recno','=',$request->recno],['norujukan','=',$norujukan]])->delete();
|
||||
|
||||
return response('Deleted Successfully', 200);
|
||||
}
|
||||
|
||||
public function editmarhun($kodcaw,$norujukan,Request $request)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$jemas = Marhun::on($cawangan['mysql'])->where([['recno','=',$request->recno],['norujukan','=',$norujukan]])->update(
|
||||
[
|
||||
'karat' => $request->karat,
|
||||
'berat' => $request->berat,
|
||||
'harga' => $request->harga,
|
||||
'n_marhun' => $request->n_marhun
|
||||
]);
|
||||
|
||||
|
||||
return response('Edit Successfully', 200);
|
||||
}
|
||||
|
||||
public function getLaporanMarhunHarian($kodcaw,$tarikh){
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user