fix penebusan

This commit is contained in:
fifi97
2021-05-12 09:05:56 +08:00
parent 6801af71e5
commit eeb8e32743
6 changed files with 158 additions and 18 deletions
+6 -4
View File
@@ -926,10 +926,12 @@
var nowakil = nw;
$.ajax({
method:'put',
method:'get',
datatype: 'json',
url: api + '/api/updatetebus/' + kodcaw + '/' + norujukan,
url: "{{ route('tebus.penuh') }}",
data:{
"kodcaw" : kodcaw,
"norujukan" : norujukan,
"nopelanggan" : nopelanggan,
"jenistebus" : jenistebus,
"jbg" : jbg,
@@ -949,7 +951,7 @@
success:function(success_data){
if(success_data == 1)
if(success_data == 'success')
{
$.ajax({
method: 'put',
@@ -980,7 +982,7 @@
Swal.fire({
icon: 'error',
title: 'Amaran!',
text: 'norujukan Sudah Ditebus Di Dalam Table Gadai!',
text: 'norujukan Sudah ditebus di dalam table gadai!',
});
}
}