// Cria nova contrato $("#btn_save_recebivel").click(function (e){ $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }) e.preventDefault(); var formData = { credor: $('#credor_modal_man').val(), valor : $('#valor_modal_man').val(), qtd_parcelas: $('#qtd_parcelas_modal_man').val(), dividir: $("input[name='dividir_modal_man']:checked").val(), dt_vcto: $('#dt_vcto_modal_man').val(), } var state = $('#btn_save_recebivel').val(); var type = "POST"; //Valida se pode cadastrar a configuração //if($('#liberacadastro_contrato_modal').val() == "true"){ $.ajax({ type: type, url: "../../get-receber/recebivel", data: formData, dataType: 'json', success: function (data) { //console.log(data); // alert('Salvo com sucesso'); //$("#alertModalsuccess_contrato").removeClass('d-none'); // $('#frm_create_contrato').trigger("reset"); // $('#CadConfParModal').modal('hide'); // location.reload(); $.each(JSON.parse(data),function(key,value){ $('#validation_return').append('
');
},
success: function (data) {
$.each(JSON.parse(data),function(key,value){
$("#bt_respboleto").click();
$("#teste_boleto").html(value);
$("#btn_impboleto").click();
});
},
error: function (data) {
$("#gif_load").html('