fix marginpinj

This commit is contained in:
nurulnisha
2024-06-24 11:44:14 +08:00
parent 64325e5e24
commit 40de6e8ff1
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -246,4 +246,14 @@ class MarhunController extends Controller
return response()->json($totalnilaimarhun);
}
public function getMarhunCaw($kodcaw,$norujukan)
{
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$data = Marhun::on($cawangan['mysql'])
->where('norujukan','=', $norujukan)
->sum('marhun.n_marhun');
return response()->json($data,200);
}
}