added penyelarasan and fix onepercent formula for lejeram

This commit is contained in:
Hafifie PKB
2024-05-14 08:36:03 +08:00
parent 2e533660e5
commit 565136c744
11 changed files with 339 additions and 40 deletions
@@ -0,0 +1,19 @@
<?php
namespace App\Http\Controllers;
use App\Coordination;
use App\Cawangan;
use Carbon\Carbon;
use Illuminate\Http\Request;
class PenyelarasanController extends Controller
{
public function getPenyelarasan($kodcaw,Request $request){
$cawangan = Cawangan::on('mysql7')->where('kodcaw',$kodcaw)->first();
$coordination = Coordination::on($cawangan['mysql'])->where('date',$request->tarikh)->get();
return response()->json($coordination);
}
}