add latest fix denominasi
This commit is contained in:
@@ -2333,15 +2333,28 @@
|
|||||||
success: function(success){
|
success: function(success){
|
||||||
$('#btnsave').css('display','none');
|
$('#btnsave').css('display','none');
|
||||||
$('#btnotp').show();
|
$('#btnotp').show();
|
||||||
Swal.fire({
|
if(success == 1){
|
||||||
icon: 'success',
|
Swal.fire({
|
||||||
title: 'Berjaya',
|
icon: 'success',
|
||||||
text: 'Berjaya mengemaskini maklumat pelanggan'
|
title: 'Berjaya',
|
||||||
}).then((result) => {
|
text: 'Berjaya mengemaskini maklumat pelanggan',
|
||||||
if (result.isConfirmed) {
|
allowEscapeKey : false,
|
||||||
location.reload();
|
allowOutsideClick: false,
|
||||||
}
|
}).then((result) => {
|
||||||
});
|
if (result.isConfirmed) {
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
Swal.fire({
|
||||||
|
icon: 'error',
|
||||||
|
title: 'Tidak Berjaya',
|
||||||
|
text: 'Tidak berjaya mengemaskini maklumat pelanggan',
|
||||||
|
allowEscapeKey : false,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
alert(request.responseText);
|
alert(request.responseText);
|
||||||
|
|||||||
@@ -408,19 +408,33 @@
|
|||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
title: 'Tidak Berjaya',
|
title: 'Tidak Berjaya',
|
||||||
text: 'Tidak berjaya mengemaskini denominasi'
|
text: 'Tidak berjaya mengemaskini denominasi',
|
||||||
|
allowEscapeKey : false,
|
||||||
|
allowOutsideClick: false,
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
location.reload();
|
$('#editbtn').removeClass('d-none');
|
||||||
|
$('#tutupbtn').removeClass('d-none');
|
||||||
|
$('#simpanbtn').addClass('d-none');
|
||||||
|
$('#batalbtn').addClass('d-none');
|
||||||
|
$('.editfunc').prop('readonly', true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
title: 'Berjaya',
|
title: 'Berjaya',
|
||||||
text: 'Berjaya mengemaskini denominasi'
|
text: 'Berjaya mengemaskini denominasi',
|
||||||
|
allowEscapeKey : false,
|
||||||
|
allowOutsideClick: false,
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
|
|
||||||
|
$('#editbtn').removeClass('d-none');
|
||||||
|
$('#tutupbtn').removeClass('d-none');
|
||||||
|
$('#simpanbtn').addClass('d-none');
|
||||||
|
$('#batalbtn').addClass('d-none');
|
||||||
|
$('.editfunc').prop('readonly', true);
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -667,20 +681,12 @@
|
|||||||
confirmButtonColor: '#3085d6',
|
confirmButtonColor: '#3085d6',
|
||||||
cancelButtonColor: '#d33',
|
cancelButtonColor: '#d33',
|
||||||
confirmButtonText: 'Simpan'
|
confirmButtonText: 'Simpan'
|
||||||
}).then((result) => {
|
}).then(async (result) => {
|
||||||
|
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
|
|
||||||
saveData();
|
let savedata = await saveData();
|
||||||
|
|
||||||
$('#editbtn').removeClass('d-none');
|
|
||||||
$('#tutupbtn').removeClass('d-none');
|
|
||||||
$('#simpanbtn').addClass('d-none');
|
|
||||||
$('#batalbtn').addClass('d-none');
|
|
||||||
|
|
||||||
$('.editfunc').prop('readonly', true);
|
|
||||||
|
|
||||||
location.reload();
|
|
||||||
} else if (result.isDismissed) {
|
} else if (result.isDismissed) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1254,15 +1254,26 @@
|
|||||||
success: function(success){
|
success: function(success){
|
||||||
$('#btnsave').css('display','none');
|
$('#btnsave').css('display','none');
|
||||||
$('#btnotp').show();
|
$('#btnotp').show();
|
||||||
Swal.fire({
|
if(success == 1){
|
||||||
icon: 'success',
|
Swal.fire({
|
||||||
title: 'Berjaya',
|
icon: 'success',
|
||||||
text: 'Berjaya mengemaskini maklumat pelanggan'
|
title: 'Berjaya',
|
||||||
}).then((result) => {
|
text: 'Berjaya mengemaskini maklumat pelanggan'
|
||||||
if (result.isConfirmed) {
|
}).then((result) => {
|
||||||
location.reload();
|
if (result.isConfirmed) {
|
||||||
}
|
location.reload();
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
Swal.fire({
|
||||||
|
icon: 'error',
|
||||||
|
title: 'Tidak Berjaya',
|
||||||
|
text: 'Tidak berjaya mengemaskini maklumat pelanggan',
|
||||||
|
allowEscapeKey : false,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
error: function (request, status, error) {
|
error: function (request, status, error) {
|
||||||
|
|||||||
@@ -247,7 +247,7 @@
|
|||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<div class="form-group row" id="divbayaran">
|
<div class="form-group row" id="divbayaran">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
BAYARAN PELANGGAN(RM)
|
<b>BAYARAN PELANGGAN(RM)</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<input type="text" id="bayaran" onkeyup="bayartambahan(this)" placeholder="0.00" class="form-control" disabled/>
|
<input type="text" id="bayaran" onkeyup="bayartambahan(this)" placeholder="0.00" class="form-control" disabled/>
|
||||||
|
|||||||
Reference in New Issue
Block a user