bug fixes, senderID polishing, support fees, paperless partial
This commit is contained in:
61
public/assets/js/clientshow.js
vendored
61
public/assets/js/clientshow.js
vendored
@@ -33,6 +33,10 @@
|
||||
$('#launchDate').datetimepicker({
|
||||
format: 'YYYY-MM-DD'
|
||||
});
|
||||
|
||||
$('#invoiceDateSupport').datetimepicker({
|
||||
format: 'YYYY-MM-DD'
|
||||
});
|
||||
$('#expiryDate').datetimepicker({
|
||||
format: 'YYYY-MM-DD'
|
||||
});
|
||||
@@ -67,6 +71,10 @@
|
||||
evt.preventDefault();
|
||||
$('#financePaymentsForm').modal('show');
|
||||
});
|
||||
$('#addSupportFeesInfoBtn').click(function(evt){
|
||||
evt.preventDefault();
|
||||
$('#supportFeesFormModal').modal('show');
|
||||
});
|
||||
$('.paymentEntryEditBtn').click(function(tve){
|
||||
tve.preventDefault();
|
||||
//var theIDD = $("input[name=payment_entry_id]").val();
|
||||
@@ -285,6 +293,57 @@
|
||||
});
|
||||
});
|
||||
|
||||
$('#supportFeesEntryForm').submit(function(evt){
|
||||
evt.preventDefault();
|
||||
var formData = new FormData($(this)[0]);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: base_url + '/clients/support_fees_store',
|
||||
data : formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
async: false,
|
||||
success: function (data){
|
||||
if (data.code === 1) {
|
||||
$("#financeForm")[0].reset();
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: 'Support Fees Details added successfully',
|
||||
});
|
||||
setTimeout(function(){
|
||||
location.reload();
|
||||
}, 8000);
|
||||
}
|
||||
else if (data.code > 5) {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: data.msg,
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: 'Your request could not be handled. Try again !',
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
error: function(error){
|
||||
//console.log(error);
|
||||
//console.log("AJAX error in request: " + JSON.stringify(err, null, 2));
|
||||
var output = $.parseJSON(error.responseText);
|
||||
// console.log(output.errors);
|
||||
$('#financeNotifyArea').removeClass('hidden');
|
||||
$('#financeNotifyArea').addClass('alert alert-danger');
|
||||
$.each(output.errors, function (key, value) {
|
||||
// console.log(value[0]);
|
||||
$('#financeNotifyArea').text(value[0]);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('#financeServicesStore').change(function(evtt){
|
||||
let currentServices = $('#financeServicesStore').val();
|
||||
$.each(currentServices, function (key, value) {
|
||||
@@ -300,6 +359,7 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#financeEditForm').submit(function(evt){
|
||||
evt.preventDefault();
|
||||
var formData = new FormData($(this)[0]);
|
||||
@@ -336,6 +396,7 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#shortCodeEditForm').submit(function(evt){
|
||||
evt.preventDefault();
|
||||
var formData = new FormData($(this)[0]);
|
||||
|
||||
Reference in New Issue
Block a user