add lejeram wang tak dituntut
This commit is contained in:
@@ -482,6 +482,19 @@ class LelongController extends Controller
|
||||
return response()->json($wtd,200);
|
||||
}
|
||||
|
||||
public function calculationwtdLejer($kodcaw,Request $request)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
|
||||
$wtd = WTD::on($cawangan['mysql'])
|
||||
->where('tarikh','>=', $request->mula)
|
||||
->where('tarikh','<=', $request->hingga)
|
||||
->sum('wtd');
|
||||
|
||||
return response()->json($wtd,200);
|
||||
}
|
||||
|
||||
public function calculationserahbaki($kodcaw,Request $request)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
Reference in New Issue
Block a user