This commit is contained in:
Vinsensiaaa
2025-02-18 15:51:33 +07:00
4 changed files with 81 additions and 32 deletions
@@ -182,10 +182,12 @@ class ItemSearchController extends Controller
public function sts(Request $request)
{
$no_skprd = $request->no_skprd;
$kode_akun = $request->kode_akun;
$select = DB::raw("NO_SKPRD,TGL_VALIDASI,KODE_BAS,NILAI_BAYAR,TRBAS.N_AKUN");
$sts = Siesetpembayaran::select($select)
->join("NEWSIPKD.TRBAS", "SI_ESET_PEMBAYARAN.KODE_BAS", "=", "TRBAS.C_AKUN")
->where("NO_SKPRD", $no_skprd)
->where("SI_ESET_PEMBAYARAN.KODE_BAS", $kode_akun)
->whereRaw("C_TAHUN_BERLAKU<=" . getTA() . " AND C_TAHUN_BERAKHIR>=" . getTA())
->first();
if ($sts) {