Update dan Bugs Fix
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user