Belanja Realisasi Rinci bulan

This commit is contained in:
Pusdatin BPKD Jkt
2022-11-04 14:25:29 +07:00
parent 2df12fe3d2
commit 2282d18c03
15 changed files with 363 additions and 85 deletions
@@ -250,7 +250,7 @@ class ItemSearchController extends Controller
$ta = $request->ta;
$select = DB::raw("C_AKUN AS IDX,C_AKUN||' | '||N_AKUN as NAME");
$trbas = Trbas::select($select)->whereRaw("C_TAHUN_BERAKHIR>=$ta AND C_AKUN LIKE '4.2.01.01%' AND LENGTH(C_AKUN)>=17");
$trbas = Trbas::select($select)->whereRaw("C_TAHUN_BERAKHIR>=$ta AND (C_AKUN LIKE '4.2.01.01%' OR C_AKUN LIKE '4.2.01.02%') AND LENGTH(C_AKUN)>=17");
if (!empty($search)){
$trbas->whereRaw(" (LOWER(C_AKUN) LIKE '%$search%' OR LOWER(N_AKUN) LIKE '%$search%') ");