Update dan Bugs Fix

This commit is contained in:
Pusdatin BPKD Jkt
2022-09-28 12:53:54 +07:00
parent d7d57eda31
commit 009002a5e5
6 changed files with 16 additions and 8 deletions
@@ -125,12 +125,20 @@ class RealisasiPendapatanController extends Controller
$limit = $post["length"];
$sps = $post["sps"];
$ta = $post["ta"];
$src = isset($post["search"]["value"]) ? strtolower($post["search"]["value"]):"";
$dataFilter=0;
$data = PendapatanRealisasi::where("tahun",$ta)->orderBy("created_at","ASC");
if (!empty($sps)){
if (!empty($sps))
{
$data->where("id_sps",$sps);
}
if (!empty($src))
{
$src = strtolower($src);
$data->whereRaw("( LOWER(simtrad4_uraian) like '%".$src."%' OR LOWER(simtrad4_sp2d_bun) like '%".$src."%' OR LOWER(rkud_no_sts) like '%".$src."%')");
}
$dataFilter = $data->count();
$dataTotal = PendapatanRealisasi::where("tahun",$ta)->count();