added sender ID export, edit payment bug fix, profile page bug fix
This commit is contained in:
@@ -455,15 +455,17 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
|
||||
// Populate Payment Edit Modal
|
||||
$(document).on('click', '.edit-payment-btn', function() {
|
||||
console.log('heeere');
|
||||
let id = $(this).data('id');
|
||||
|
||||
console.log($(this).data);
|
||||
$('#edit_payment_id').val(id);
|
||||
$('#edit_pay_invoice').val($(this).data('invoice'));
|
||||
$('#edit_pay_amount').val($(this).data('amount'));
|
||||
$('#edit_pay_date').val($(this).data('date'));
|
||||
$('#edit_pay_status').val($(this).data('status'));
|
||||
$('#editRemarks').val($(this).data('remarks'));
|
||||
|
||||
// Fixed URL
|
||||
|
||||
$('#editPaymentForm').attr('action', base_url + `/client-payments/${id}`);
|
||||
$('#editPaymentModal').modal('show');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user