SPS Pendapatan ganti dari akb
This commit is contained in:
@@ -133,7 +133,7 @@
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
id: item.idx
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
@@ -238,7 +238,7 @@
|
||||
$('#txt_id_sps').append($('<option>',{value:"",text:""}));
|
||||
$.map(data, function (item) {
|
||||
$('#txt_id_sps').append($('<option>', {
|
||||
value: item.id,
|
||||
value: item.idx,
|
||||
text : item.name
|
||||
}));
|
||||
})
|
||||
@@ -247,7 +247,7 @@
|
||||
}
|
||||
|
||||
optionDAK();
|
||||
$('#txt_id_sps').val({{ $idSPS }});
|
||||
$('#txt_id_sps').val("{{ $idSPS }}");
|
||||
|
||||
$("#src").keyup(function(e){
|
||||
if (e.keyCode == 13){
|
||||
@@ -341,8 +341,8 @@
|
||||
],
|
||||
"dom": "<\"top\" <\"row\"<\"col-md-6\"l><\"col-md-6 text-right\"B>>>rt<\"bottom\" <\"row\"<\"col-md-6\"i><\"col-md-6\"p>> ><\"clear\">",
|
||||
"lengthMenu": [
|
||||
[ 10, 20, 50 ],
|
||||
[ "10", "20", "50" ]
|
||||
[ 10, 20, 50, -1 ],
|
||||
[ "10", "20", "50", "All" ]
|
||||
],
|
||||
"paging": true, // Table pagination
|
||||
"columns": [
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
$("select[name=sub_jenis_dana]").append($newOptionSubJenisDana).trigger('change');
|
||||
cekInputKontrak("{{ $realisasi_belanja->nama_subjenis_dana }}");
|
||||
|
||||
<?php if (!empty($realisasi_belanja->id_sps)) { ?>
|
||||
let $newOptionSps = $("<option selected='selected'></option>").val("{{ $realisasi_belanja->id_sps }}").text("{{ $sps->name }}")
|
||||
$("select[name=id_sps]").val("{{ $realisasi_belanja->id_sps }}");
|
||||
$("select[name=id_sps]").append($newOptionSps).trigger('change');
|
||||
<?php if (!empty($realisasi_belanja->kode_rekening)) { ?>
|
||||
let $newOptionSps = $("<option selected='selected'></option>").val("{{ $realisasi_belanja->kode_rekening }}").text("{{ $realisasi_belanja->nama_rekening }}")
|
||||
$("select[name=id_sps]").val("{{ $realisasi_belanja->kode_rekening }}");
|
||||
$("select[name=id_sps]").append($newOptionSps).trigger('change');
|
||||
<?php } ?>
|
||||
|
||||
let $newOptionJenisBelanja = $("<option selected='selected'></option>").val("{{ $realisasi_belanja->jenis_belanja }}").text("{{ $realisasi_belanja->nama_jenis_belanja }}")
|
||||
|
||||
@@ -70,9 +70,9 @@
|
||||
|
||||
cekInputKontrak("{{ $BelanjaRealisasi->nama_subjenis_dana }}");
|
||||
|
||||
<?php if (!empty($BelanjaRealisasi->id_sps)) { ?>
|
||||
let $newOptionSps = $("<option selected='selected'></option>").val("{{ $BelanjaRealisasi->id_sps }}").text("{{ $sps->name }}")
|
||||
$("select[name=id_sps]").val("{{ $BelanjaRealisasi->id_sps }}");
|
||||
<?php if (!empty($BelanjaRealisasi->kode_rekening)) { ?>
|
||||
let $newOptionSps = $("<option selected='selected'></option>").val("{{ $BelanjaRealisasi->kode_rekening }}").text("{{ $BelanjaRealisasi->nama_rekening }}")
|
||||
$("select[name=id_sps]").val("{{ $BelanjaRealisasi->kode_rekening }}");
|
||||
$("select[name=id_sps]").append($newOptionSps).trigger('change');
|
||||
$("select[name=id_sps]").attr("disabled", true);
|
||||
<?php } ?>
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
id: item.idx
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
id: item.idx
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user