Fix TRBAS Tahun Berlaku

This commit is contained in:
Pusdatin BPKD Jkt
2023-01-12 10:21:54 +07:00
parent d5fe9b9d8a
commit cd80b7e00d
3 changed files with 6 additions and 2 deletions
@@ -133,7 +133,7 @@ class RealisasiBelanjaController extends Controller
if (isset($req["id_sps"]))
{
$sps = Trbas::where("C_AKUN", $req["id_sps"])->firstorNew();
$sps = Trbas::where("C_AKUN", $req["id_sps"])->whereRaw("C_TAHUN_BERLAKU<=".getTA()." AND C_TAHUN_BERAKHIR>=".getTA())->firstorNew();
if ($sps){
$input["kode_rekening"] = $sps["c_akun"];