fix imbangduga

This commit is contained in:
Hafifie PKB
2024-04-28 11:06:45 +08:00
parent 13890767dd
commit 5d2f5c53a5
6 changed files with 74 additions and 31 deletions
@@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
use App\Services\Reports\OnePercentService as ReportOne;
use App\TransaksiKeuntungan;
use Illuminate\Http\Request;
use Lcobucci\JWT\Signer\Rsa;
class OnePercentController extends Controller
{
@@ -18,10 +19,10 @@ class OnePercentController extends Controller
return response()->json($response);
}
public function getUjrahImbangDuga(string $kod_cawangan)
public function getUjrahImbangDuga(string $kod_cawangan,Request $request)
{
$reports = new ReportOne($kod_cawangan);
$response = $reports->getTotalUjrah('B');
$response = $reports->getTotalUjrah('B',$request->tarikh);
return response()->json($response);
}