This commit is contained in:
Pusdatin BPKD Jkt
2023-07-31 14:51:37 +07:00
parent de597eb086
commit daba748fb1
5 changed files with 36 additions and 11 deletions
@@ -90,7 +90,7 @@ class MstJenisDanaController extends Controller
$select = DB::raw("ID,NAME,GRUP");
$sqlstr = MstJenisDana::select($select);
$dataTotal = $sqlstr->count();
$data = $sqlstr->orderBy("GRUP","DESC");
$data = $sqlstr->orderBy("ID","ASC");
if (!empty($src)){
$data->whereRaw(" ( lower(NAME) like '%$src%' ) ");
}
+13 -8
View File
@@ -136,18 +136,23 @@ function getTA()
function getJenisDana()
{
return ["DBH","DAK","DID","DAU"];
$conf = config('constants.jenis_dana');
// call_user_func_array('array_merge',array_keys($conf))
return array_keys($conf);
}
function getKodeRekInduk($val)
{
$kodeRek = [
"DBH"=>["4.2.01.01.01"],
// "DBH-CHT"=>"4.2.01.01.01.0004",
"DAU"=>["4.2.01.01.02"],
"DAK"=>["4.2.01.01.03","4.2.01.01.04"],
"DID"=>["4.2.01.02.01"]
];
$conf = config('constants.jenis_dana');
// $kodeRek = [
// "DBH"=>["4.2.01.01.01"],
// // "DBH-CHT"=>"4.2.01.01.01.0004",
// "DAU"=>["4.2.01.01.02"],
// "DAK"=>["4.2.01.01.03","4.2.01.01.04"],
// "DID"=>["4.2.01.02.01"]
// ];
$kodeRek = array_combine(array_keys($conf),array_column(array_values($conf),"rekening"));
return $kodeRek[$val];
}
+7
View File
@@ -11,5 +11,12 @@
'option_monetery' => '15',
'option_ratings' => '16',
'option_textarea' => '17',
],
'jenis_dana' => [
'DBH'=>["rekening"=>["4.2.01.01.01"]],
'DAK'=>["rekening"=>["4.2.01.01.03","4.2.01.01.04"]],
'DID'=>["rekening"=>["4.2.01.02.01"]],
'DAU'=>["rekening"=>["4.2.01.01.02"]],
'IF'=>["rekening"=>["4.2.01.06.01"]]
]
];
+13
View File
@@ -497,3 +497,16 @@ let dauRinci = ()=>{
}
dauRinci();
$('body').on('expanded.pushMenu collapsed.pushMenu', function() {
console.log("WOKE")
// Add delay to trigger code only after the pushMenu animation completes
setTimeout(function() {
// Code ...
// Example: refresh datatable column widths after collapse/expansion completes
$.fn.dataTable.tables( {visible: true, api: true} ).columns.adjust();
// Time depends on your settings
}, 350);
} );
@@ -233,7 +233,7 @@
"processing": true,
"serverSide": true,
"ordering": false,
"autoWidth": false,
"autoWidth": true,
"ajax": {
url: "{{ $baseUrl }}/realisasi-belanja/datatable",
type: "POST",