bug fixes, AM change feature, refactoring
This commit is contained in:
49
public/assets/js/clientshow.js
vendored
49
public/assets/js/clientshow.js
vendored
@@ -144,6 +144,12 @@ $(document).ready(function(){
|
||||
evt.preventDefault();
|
||||
$('#supportFeesFormModal').modal('show');
|
||||
});
|
||||
|
||||
$('#changeAmTrigBtn').click(function(evt){
|
||||
evt.preventDefault();
|
||||
$('#changeAmModal').modal('show');
|
||||
});
|
||||
|
||||
$('.paymentEntryEditBtn').click(function(tve){
|
||||
tve.preventDefault();
|
||||
//var theIDD = $("input[name=payment_entry_id]").val();
|
||||
@@ -593,6 +599,49 @@ $(document).ready(function(){
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#changeAmForm').submit(function(evt){
|
||||
evt.preventDefault();
|
||||
var formData = new FormData($(this)[0]);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: base_url + '/clients/changeam',
|
||||
data : formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
async: false,
|
||||
success: function (data){
|
||||
if (data.code === 1) {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: 'Account Manager successfully changed',
|
||||
});
|
||||
setTimeout(function(){
|
||||
location.reload();
|
||||
}, 8000);
|
||||
}
|
||||
else if (data.code > 1) {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: data.msg,
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: 'Your request could not be handled. Try again !',
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
error: function (data) {
|
||||
var output = $.parseJSON(data.responseText);
|
||||
console.log(output);
|
||||
},
|
||||
fail : function(errordata){
|
||||
console.log(errordata);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#newSenderIdForm').submit(function(evt){
|
||||
evt.preventDefault();
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
[2025-06-04 08:59:13] production.INFO: Mphatso Katundu Successfully logged in at : 2025-06-04 08:59:13
|
||||
[2025-06-04 08:59:15] production.INFO: Mphatso Katundu Successfully logged in at : 2025-06-04 08:59:15
|
||||
[2025-06-04 10:18:10] production.INFO: PPXkA9
|
||||
[2025-06-04 11:36:58] production.INFO: Kwesi Banson Successfully logged in at : 2025-06-04 11:36:58
|
||||
[2025-06-04 11:58:49] production.INFO: Charity Mtembezeka Successfully logged in at : 2025-06-04 11:58:49
|
||||
[2025-06-04 13:00:02] production.INFO: MNOs due for renewal
|
||||
[2025-06-04 13:15:21] production.INFO: New notes for : ASTRAL SMS
|
||||
[2025-06-04 13:15:21] production.INFO: New notes triggered by : Charity Mtembezeka
|
||||
[2025-06-04 13:15:21] production.INFO: Astral SMS: Afghanistan route was set for them, they are in the process of testing the route.
|
||||
[2025-06-04 14:00:13] production.INFO: Clients due for renewal TSG Carrier, mansa@click-mobile.com, 15
|
||||
[2025-06-04 14:40:58] production.INFO: New notes for : Zaheen Telecom
|
||||
[2025-06-04 14:40:58] production.INFO: New notes triggered by : Charity Mtembezeka
|
||||
[2025-06-04 14:40:58] production.INFO: Zaheen: Continued our Sierra Leone discussion, they said they will set for us. They wanted Sri Lanka route, but unfortunately, they have lost the traffic.
|
||||
[2025-06-04 14:43:59] production.INFO: New notes for : BBT VOICE & SMS
|
||||
[2025-06-04 14:44:00] production.INFO: New notes triggered by : Charity Mtembezeka
|
||||
[2025-06-04 14:44:00] production.INFO: BBT: Been asking them to check on their Afghanistan route as other messages from Astral SMS are failing.
|
||||
109
public/assets/js/senderid.js
vendored
109
public/assets/js/senderid.js
vendored
@@ -1,44 +1,94 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
$('#resetBtn').click(function(){
|
||||
console.log('foo bar');
|
||||
location.reload();
|
||||
});
|
||||
|
||||
var directMnoSelectionEditStart = $('#directMnoEdit').val();
|
||||
console.log(directMnoSelectionEditStart + " at rest");
|
||||
if (directMnoSelectionEditStart == 'YES') {
|
||||
$('#mnoDivEdit').removeClass('hidden');
|
||||
$('#supplierDivEdit').addClass('hidden');
|
||||
// $("#supplierNameEdit").prop("disabled", true);
|
||||
// $("#networkNameEdit").prop("disabled", false);
|
||||
var directMnoSelectionStart = $('#directMno').val();
|
||||
if (directMnoSelectionStart !== undefined) {
|
||||
// #console.log(directMnoSelectionStart + " at rest");
|
||||
if (directMnoSelectionStart == 'YES') {
|
||||
// $('#mnoDiv').removeClass('hidden');
|
||||
// $('#supplierDiv').addClass('hidden');
|
||||
$('#supplierName').attr('required', false);
|
||||
$('#supplierName').attr('disabled', true);
|
||||
$('#networkName').attr('disabled', false);
|
||||
}
|
||||
else if(directMnoSelectionEditStart == 'NO'){
|
||||
console.log('in the NO | at rest');
|
||||
$('#supplierDivEdit').removeClass('hidden');
|
||||
$('#mnoDivEdit').addClass('hidden');
|
||||
// $("#supplierNameEdit").prop("disabled", false);
|
||||
// $("#networkNameEdit").prop("disabled", true);
|
||||
else if(directMnoSelectionStart == 'NO'){
|
||||
// console.log('in the NO in Create | at rest');
|
||||
// $('#supplierDiv').removeClass('hidden');
|
||||
// $('#mnoDiv').addClass('hidden');
|
||||
$('#networkName').attr('required', false);
|
||||
$('#networkName').attr('disabled', true);
|
||||
$('#supplierName').attr('disabled', false);
|
||||
}
|
||||
else{
|
||||
console.log('do nothing | at rest');
|
||||
console.log('do nothing in create | at rest');
|
||||
}
|
||||
}
|
||||
|
||||
//Edit
|
||||
var directMnoSelectionEditStart = $('#directMnoEdit').val();
|
||||
if (directMnoSelectionEditStart !== undefined) {
|
||||
// console.log(directMnoSelectionEditStart + " at rest");
|
||||
if (directMnoSelectionEditStart == 'YES') {
|
||||
// $('#mnoDivEdit').removeClass('hidden');
|
||||
// $('#supplierDivEdit').addClass('hidden');
|
||||
$('#supplierNameEdit').attr('required', false);
|
||||
$('#supplierNameEdit').attr('disabled', false);
|
||||
$('#networkNameEdit').attr('disabled', true);
|
||||
}
|
||||
else if(directMnoSelectionEditStart == 'NO'){
|
||||
console.log('in the NO in Edit | at rest');
|
||||
// $('#supplierDivEdit').removeClass('hidden');
|
||||
// $('#mnoDivEdit').addClass('hidden');
|
||||
$('#networkNameEdit').attr('required', false);
|
||||
$('#networkNameEdit').attr('disabled', true);
|
||||
$('#supplierNameEdit').attr('disabled', false);
|
||||
}
|
||||
else{
|
||||
console.log('do nothing in Edit | at rest');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Create
|
||||
$('#directMno').change(function(tve){
|
||||
tve.preventDefault();
|
||||
// var theIDD = $(this).siblings('.shortCodeEntryRowId').val();
|
||||
var directMnoSelection = $(this).val();
|
||||
// console.log('User selection ' + directMnoSelection);
|
||||
if (directMnoSelection == 'YES') {
|
||||
$('#mnoDiv').removeClass('hidden');
|
||||
$('#supplierDiv').addClass('hidden');
|
||||
$('#mnoDivEdit').removeClass('hidden');
|
||||
// $('#mnoDiv').removeClass('hidden');
|
||||
// $('#supplierDiv').addClass('hidden');
|
||||
// $('#mnoDivEdit').removeClass('hidden');
|
||||
// // $('#supplierNameMM').val('').change();
|
||||
// $('#supplierNameMM').remove();
|
||||
// $('#supplierDiv').remove();
|
||||
|
||||
$('#supplierName').attr('required', false);
|
||||
$('#supplierName').attr('disabled', true);
|
||||
|
||||
$('#networkName').attr('disabled', false);
|
||||
|
||||
// $("#supplierName").prop("disabled", true);
|
||||
// $("#networkNameEdit").prop("disabled", false);
|
||||
}
|
||||
else{
|
||||
$('#supplierDiv').removeClass('hidden');
|
||||
$('#mnoDiv').addClass('hidden');
|
||||
$('#mnoDivEdit').addClass('hidden');
|
||||
// $('#supplierDiv').removeClass('hidden');
|
||||
// $('#mnoDiv').addClass('hidden');
|
||||
// $('#mnoDivEdit').addClass('hidden');
|
||||
|
||||
// $('#networkNameMM').val('').change();
|
||||
// $('#mnoDiv').remove();
|
||||
|
||||
// $("#networkName").prop("disabled", true);
|
||||
// $("#supplierNameEdit").prop("disabled", false);
|
||||
$('#networkName').attr('disabled', true);
|
||||
$('#networkName').attr('required', false);
|
||||
$('#supplierName').attr('disabled', false);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -48,21 +98,28 @@ $(document).ready(function(){
|
||||
$('#directMnoEdit').change(function(tve){
|
||||
tve.preventDefault();
|
||||
var directMnoSelectionEdit = $(this).val();
|
||||
console.log(directMnoSelectionEdit);
|
||||
// console.log(directMnoSelectionEdit);
|
||||
if (directMnoSelectionEdit == 'YES') {
|
||||
$('#mnoDivEdit').removeClass('hidden');
|
||||
$('#supplierDivEdit').addClass('hidden');
|
||||
// $('#mnoDivEdit').removeClass('hidden');
|
||||
// $('#supplierDivEdit').addClass('hidden');
|
||||
// $("#supplierNameEdit").prop("disabled", true);
|
||||
// $("#networkNameEdit").prop("disabled", false);
|
||||
|
||||
$('#supplierNameEdit').attr('required', false);
|
||||
$('#supplierNameEdit').attr('disabled', false);
|
||||
$('#networkNameEdit').attr('disabled', true);
|
||||
}
|
||||
else if(directMnoSelectionEdit == 'NO'){
|
||||
console.log('in the NO | on change');
|
||||
$('#supplierDivEdit').removeClass('hidden');
|
||||
// $('#supplierDivEdit').removeClass('hidden');
|
||||
// $('#networkNameEdit').removeClass('hidden');
|
||||
// $('#mnoDivEdit').addClass('hidden');
|
||||
$('#networkNameEdit').addClass('hidden');
|
||||
// $('#networkNameEdit').addClass('hidden');
|
||||
// $("#supplierNameEdit").prop("disabled", false);
|
||||
// $("#networkNameEdit").prop("disabled", true);
|
||||
$('#networkNameEdit').attr('required', false);
|
||||
$('#networkNameEdit').attr('disabled', true);
|
||||
$('#supplierNameEdit').attr('disabled', false);
|
||||
}
|
||||
else{
|
||||
console.log('do nothing | on change');
|
||||
|
||||
0
public/assets/js/support_ticket.js
vendored
Normal file
0
public/assets/js/support_ticket.js
vendored
Normal file
Reference in New Issue
Block a user