bugsfix datatable realisasi belanja
This commit is contained in:
@@ -434,7 +434,7 @@ class RealisasiBelanjaController extends Controller
|
|||||||
if (getRole() == "skpd") {
|
if (getRole() == "skpd") {
|
||||||
$dataTotal = BelanjaRealisasi::where("tahun_anggaran", $ta)->whereRaw("KODE_SKPD='" . Auth::user()->nrk . "'")->count();
|
$dataTotal = BelanjaRealisasi::where("tahun_anggaran", $ta)->whereRaw("KODE_SKPD='" . Auth::user()->nrk . "'")->count();
|
||||||
} elseif (getRole() == "sbpk") {
|
} elseif (getRole() == "sbpk") {
|
||||||
$dataTotal = BelanjaRealisasi::where("tahun_anggaran", $ta)->whereRaw("KODE_SKPD IN (SELECT C_OPD FROM NEWSIPKD.TROPD WHERE C_WIL_SP2DPROSES=" . Auth::user()->wilayah . ")") - count();
|
$dataTotal = BelanjaRealisasi::where("tahun_anggaran", $ta)->whereRaw("KODE_SKPD IN (SELECT C_OPD FROM NEWSIPKD.TROPD WHERE C_WIL_SP2DPROSES=" . Auth::user()->wilayah . ")") -> count();
|
||||||
}
|
}
|
||||||
|
|
||||||
$filterClause = $this->tableFilter($request);
|
$filterClause = $this->tableFilter($request);
|
||||||
|
|||||||
Reference in New Issue
Block a user