cancel offers

This commit is contained in:
CHIEFSOFT\ameye
2024-09-23 10:51:35 -04:00
parent c8b4b63cc3
commit ca5d8ad11e
3 changed files with 52 additions and 4 deletions
@@ -47,6 +47,23 @@
return false;
}
function zeroOffer(link_id) {
if (confirm("Are you sure you want to cancel and zero this this offer?")) {
// do something
} else {
return false;
}
$('#btu' + link_id).html('Processing...');
$('#acc' + link_id).prop('disabled', true);
$.ajax({
url: "/bkotransaction/zero_refund_offer?link_id=" + link_id
}).done(function (data) {
$('#btu' + link_id).html(data);
// document.offer_individual.rec_email.value = '';
$('#acc' + link_id).prop('disabled', false);
});
return false;
}
// -->
</script>