Fix TRBAS Tahun Berlaku
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user