// Registra recebimento em conta
$(document).on('submit_success', '#register_received_form', function( event, response ) {
let current_page = window.location.href;
let url_id_value = current_page.substr(0, current_page.lastIndexOf("/?") + 1);
if( url_id_value == '' ) url_id_value = current_page;
let message = '';
if ( response.data.customer_mail ) {
let data = response.data.customer_mail.replace(/*/g, '"');
data = JSON.parse(data);
if( data.success ) {
message = 'alert_sucess=Recebimento registrado com sucesso!';
} else {
message = 'alert_error=Não foi possível registrar o recebimento.';
}
window.location.href = url_id_value + '?' + message;
}
});
sfdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
New contributor
João Vitor Angelo da Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.