No STS Datatable detail realisasi pendapatan
This commit is contained in:
@@ -138,7 +138,7 @@ class RealisasiPendapatanController extends Controller
|
||||
$src = isset($post["search"]["value"]) ? strtolower($post["search"]["value"]):"";
|
||||
|
||||
$dataFilter=0;
|
||||
$data = PendapatanRealisasi::where("tahun",$ta)->orderBy("SIMTRAD4_TGL_SP2D_BUN","DESC");
|
||||
$data = PendapatanRealisasi::with("listSts")->where("tahun",$ta)->orderBy("SIMTRAD4_TGL_SP2D_BUN","DESC");
|
||||
if (!empty($sps))
|
||||
{
|
||||
$data->where("kode_rekening_sps",$sps);
|
||||
|
||||
@@ -22,4 +22,8 @@ class PendapatanRealisasi extends Eloquent
|
||||
return $this->hasMany('App\Models\PendapatanRealisasiSts','id_pendapatan_realisasi','id');
|
||||
}
|
||||
|
||||
public function listSts(){
|
||||
return $this->hasOne('App\Models\VwRekapPendapatanSts','id_pendapatan_realisasi','id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Yajra\Oci8\Eloquent\OracleEloquent as Eloquent;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class VwRekapPendapatanSts extends Eloquent
|
||||
{
|
||||
use HasFactory;
|
||||
protected $connection = 'Samasa';
|
||||
protected $table = 'vw_rekap_pendapatan_sts';
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user