Belanja Realisasi Rinci bulan
This commit is contained in:
@@ -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%') ");
|
||||
|
||||
Reference in New Issue
Block a user