aliran tunai and fix ansurans tebus
This commit is contained in:
Vendored
+32
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user