FIX_VOID_REDIRECT
This commit is contained in:
parent
e59f1636e4
commit
8bcb875901
@ -2250,7 +2250,12 @@ if (isset($invoice_item_details[0]['to_subscription']) && !empty($invoice_item_d
|
||||
void_reason: voidReason
|
||||
},
|
||||
success: function(response) {
|
||||
window.location.href = "<?php echo base_url('offline_invoice'); ?>";
|
||||
if ('<?= $invoice_type ?>' == 1){
|
||||
window.location.href = "<?php echo base_url('offline_invoice'); ?>";
|
||||
}
|
||||
else if ('<?= $invoice_type ?>' == 2){
|
||||
window.location.href = "<?php echo base_url('subscribers_list'); ?>";
|
||||
}
|
||||
// Handle success response
|
||||
// For example, close modal and show success message
|
||||
$('#voidReasonModal').modal('hide');
|
||||
@ -2349,8 +2354,14 @@ $('#saveButton').click(function() {
|
||||
cancel_reason: cancelReason
|
||||
},
|
||||
success: function(response) {
|
||||
|
||||
// Redirect to the invoice_list page upon successful cancellation
|
||||
window.location.href = "<?php echo base_url('offline_invoice'); ?>";
|
||||
if ('<?= $invoice_type ?>' == 1){
|
||||
window.location.href = "<?php echo base_url('offline_invoice'); ?>";
|
||||
}
|
||||
else if ('<?= $invoice_type ?>' == 2){
|
||||
window.location.href = "<?php echo base_url('subscribers_list'); ?>";
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
// Handle error response
|
||||
|
||||
Loading…
Reference in New Issue
Block a user