SPS Pendapatan ganti dari akb
This commit is contained in:
@@ -37,7 +37,7 @@ class JadwalSalurdanaController extends Controller
|
||||
$sqlstr = Sps_pendapatan::queryJadwalSalurDana($ta);
|
||||
|
||||
if (!empty($idSPS)){
|
||||
$sqlstr.=" AND x.ID=$idSPS";
|
||||
$sqlstr.=" AND x.KODE_REKENING='$idSPS'";
|
||||
}
|
||||
|
||||
$dataTotal = count(DB::select(DB::raw($sqlstr)));
|
||||
@@ -49,7 +49,8 @@ class JadwalSalurdanaController extends Controller
|
||||
$sqlstr.=" AND SUBSTR(x.kode_rekening,1,12) IN ('4.2.01.01.03','4.2.01.01.04')";
|
||||
}
|
||||
}
|
||||
$data = DB::select(DB::raw($sqlstr.'ORDER BY x.kode_rekening OFFSET '.$offset.' ROWS FETCH NEXT '.$limit.' ROWS ONLY'));
|
||||
$offsetLimit = $limit > 0 ?'OFFSET '.$offset.' ROWS FETCH NEXT '.$limit.' ROWS ONLY':'';
|
||||
$data = DB::select(DB::raw($sqlstr.'ORDER BY x.kode_rekening '.$offsetLimit));
|
||||
$dataFilter = count(DB::select(DB::raw($sqlstr)));
|
||||
|
||||
return response()->json([
|
||||
@@ -72,7 +73,7 @@ class JadwalSalurdanaController extends Controller
|
||||
{
|
||||
if ($request->id_sps > 0)
|
||||
{
|
||||
$filter.=" AND x.id_sps=".$request->id_sps;
|
||||
$filter.=" AND x.kode_rekening='".$request->id_sps."'";
|
||||
$idSPS = $request->id_sps;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user