Merge branch 'fixkaunter' of https://gitlab.com/online-sistem1/kaunter into fixkaunter
This commit is contained in:
@@ -207,25 +207,53 @@
|
||||
showCancelButton: true,
|
||||
animation: 'slide-from-top',
|
||||
inputPlaceholder: 'Sila Pilih Bank',
|
||||
allowOutsideClick: false
|
||||
allowOutsideClick: false,
|
||||
preConfirm: (value) => {
|
||||
if(!value){
|
||||
Swal.showValidationMessage(
|
||||
`Pilih Bank yang dinyatakan`
|
||||
);
|
||||
}
|
||||
}
|
||||
}).then(function (result) {
|
||||
if (result) {
|
||||
if (result.isConfirmed) {
|
||||
|
||||
$.ajax({
|
||||
method:"put",
|
||||
url: api_url + '/admin/permohonan/tagcit',
|
||||
data: {
|
||||
"mohonid" : mid,
|
||||
"bank" : result.value
|
||||
},
|
||||
success:function(data)
|
||||
{
|
||||
if(data === 1)
|
||||
Swal.fire('Diterima!', '', 'success')
|
||||
}
|
||||
});
|
||||
let cit = result.value;
|
||||
|
||||
Swal.fire({
|
||||
title: 'Masukkan No Resit',
|
||||
input: 'text',
|
||||
animation: 'slide-from-top',
|
||||
inputPlaceholder: 'No Resit',
|
||||
allowOutsideClick: false,
|
||||
preConfirm: (value) => {
|
||||
if(!value){
|
||||
Swal.showValidationMessage(
|
||||
`Masukkan No Resit Di dalam kotak disediakan`
|
||||
);
|
||||
}
|
||||
}
|
||||
}).then(function (response) {
|
||||
if(response){
|
||||
$.ajax({
|
||||
method:"put",
|
||||
url: api_url + '/admin/permohonan/tagcit',
|
||||
data: {
|
||||
"mohonid" : mid,
|
||||
"bank" : cit,
|
||||
"resitcit" : response.value
|
||||
},
|
||||
success:function(data)
|
||||
{
|
||||
if(data === 1)
|
||||
Swal.fire('Diterima!', '', 'success')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}else{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user