fix imbangduga
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user