SPS Pendapatan ganti dari akb
This commit is contained in:
@@ -20,6 +20,7 @@ use App\Models\VwDpaRsk;
|
||||
use App\Models\VwBelanjaRealisasi;
|
||||
use App\Models\UnitSatuan;
|
||||
use App\Models\Sp2d;
|
||||
use App\Models\Trbas;
|
||||
use App\Models\Sps_pendapatan;
|
||||
use App\Imports\RealisasiBelanjaImport;
|
||||
use App\Imports\RealisasiBelanjaImportDak;
|
||||
@@ -126,16 +127,17 @@ class RealisasiBelanjaController extends Controller
|
||||
"jml_rencana_kontrak"=>isset($req["jml_rencana_kontrak"])?$req["jml_rencana_kontrak"]:0,
|
||||
"jenis_dana"=>$req["jenis_dana"],
|
||||
"sub_jenis_dana"=>$req["sub_jenis_dana"],
|
||||
"id_sps"=>isset($req["id_sps"])?$req["id_sps"]:0,
|
||||
// "id_sps"=>isset($req["id_sps"])?$req["id_sps"]:0,
|
||||
"created_by"=>Auth::user()->id
|
||||
];
|
||||
|
||||
if (isset($req["id_sps"]))
|
||||
{
|
||||
$sps = Sps_pendapatan::where("ID", $req["id_sps"])->firstorNew();
|
||||
$sps = Trbas::where("C_AKUN", $req["id_sps"])->firstorNew();
|
||||
|
||||
if ($sps){
|
||||
$input["kode_rekening"] = $sps["kode_rekening"];
|
||||
$input["nama_rekening"] = $sps["nama_rekening"];
|
||||
$input["kode_rekening"] = $sps["c_akun"];
|
||||
$input["nama_rekening"] = $sps["n_akun"];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -334,7 +336,7 @@ class RealisasiBelanjaController extends Controller
|
||||
}
|
||||
|
||||
if (!empty($idSPS)){
|
||||
$filter.= " AND id_sps = ".$idSPS;
|
||||
$filter.= " AND KODE_REKENING = '".$idSPS."'";
|
||||
}
|
||||
|
||||
if (!empty($fReview)){
|
||||
|
||||
Reference in New Issue
Block a user