aliran tunai and fix ansurans tebus

This commit is contained in:
hafifierahman
2021-01-19 09:50:36 +08:00
parent 1ed798f664
commit a1227e5c4e
13 changed files with 248 additions and 97 deletions
+32 -5
View File
@@ -120,11 +120,28 @@ function totalkey(datakeyin)
}
function openuptambahdanserah(e)
{
var id = $(e).attr('id');
var kodcaw = $(e).data('kodcaw');
var teller = $(e).data('teller');
$('#txtmodal').val('');
$('#tambahserahanModal').modal();
$('#jenisjenis').val(id);
$('#kodcawangan').val(kodcaw);
$('#tellerla').val(teller);
}
//Pendahuluan
function tambahdanserahanfunc(e)
{
var id = $(e).attr('id');
var id = $('#jenisjenis').val();
var kodcaw = $('#kodcawangan').val();
var teller = $('#tellerla').val();
var api_url = $('#api').val();
if(id == "tambahmodal")
{
@@ -132,14 +149,19 @@ function tambahdanserahanfunc(e)
$.ajax({
method:"POST",
url: api_url + '/api/requestTeller/ALS/SAMSIANA',
url: api_url + '/api/requestTeller/' + kodcaw + '/' + teller,
data: {
"modal" : txt,
"serahan" : 0
},
success:function(data)
{
alert('success');
Swal.fire({
icon: 'success',
title: 'Tambah Pendahuluan',
text: 'Tambah Pendahuluan berjaya dipohon!'
})
$('#tambahserahanModal').modal('hide');
},
error: function(xhRequest, ajaxOptions, thrownError){
console.log(xhRequest);
@@ -155,14 +177,19 @@ function tambahdanserahanfunc(e)
$.ajax({
method:"POST",
url: api_url + '/api/requestTeller/ALS/SAMSIANA',
url: api_url + '/api/requestTeller/' + kodcaw + '/' + teller,
data: {
'modal' : 0,
'serahan' : txt
},
success:function(data)
{
alert('success');
Swal.fire({
icon: 'success',
title: 'Serahan Modal',
text: 'Serahan modal berjaya dipohon!'
})
$('#tambahserahanModal').modal('hide');
},
error: function(xhRequest, ajaxOptions, thrownError){
console.log(xhRequest);