add latest fix denominasi

This commit is contained in:
hafifierahman
2023-03-12 01:01:21 +08:00
parent 9b134d5e47
commit 1974255fa9
4 changed files with 63 additions and 33 deletions
+22 -9
View File
@@ -2333,15 +2333,28 @@
success: function(success){
$('#btnsave').css('display','none');
$('#btnotp').show();
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Berjaya mengemaskini maklumat pelanggan'
}).then((result) => {
if (result.isConfirmed) {
location.reload();
}
});
if(success == 1){
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Berjaya mengemaskini maklumat pelanggan',
allowEscapeKey : false,
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) {
alert(request.responseText);
@@ -408,19 +408,33 @@
Swal.fire({
icon: 'error',
title: 'Tidak Berjaya',
text: 'Tidak berjaya mengemaskini denominasi'
text: 'Tidak berjaya mengemaskini denominasi',
allowEscapeKey : false,
allowOutsideClick: false,
}).then((result) => {
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{
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Berjaya mengemaskini denominasi'
text: 'Berjaya mengemaskini denominasi',
allowEscapeKey : false,
allowOutsideClick: false,
}).then((result) => {
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();
}
});
@@ -667,20 +681,12 @@
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Simpan'
}).then((result) => {
}).then(async (result) => {
if (result.isConfirmed) {
let savedata = await saveData();
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) {
}
+20 -9
View File
@@ -1254,15 +1254,26 @@
success: function(success){
$('#btnsave').css('display','none');
$('#btnotp').show();
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Berjaya mengemaskini maklumat pelanggan'
}).then((result) => {
if (result.isConfirmed) {
location.reload();
}
});
if(success == 1){
Swal.fire({
icon: 'success',
title: 'Berjaya',
text: 'Berjaya mengemaskini maklumat pelanggan'
}).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) {
+1 -1
View File
@@ -247,7 +247,7 @@
<div class="col-6">
<div class="form-group row" id="divbayaran">
<div class="col-4">
BAYARAN PELANGGAN(RM)
<b>BAYARAN PELANGGAN(RM)</b>
</div>
<div class="col-8">
<input type="text" id="bayaran" onkeyup="bayartambahan(this)" placeholder="0.00" class="form-control" disabled/>