//update class status function
$(document).on('click', '#btnUpdate', function(){
    let id = $(this).data('id');

    $.ajax({
        url: base_url + "paymentmethod/get/" + id,
        type: "GET",
        dataType: "json",
        success: function(data){
            $('#updid').val(data.id);

            $('#updcode').val(data.code);
            $('#updname').val(data.name);
            $('#upddescription').val(data.description);
            $('#updstatus').val(data.status);
        },
        error:function(){
            alert('Unable to load data');
        }
    });
});

//delete class status function
$(document).on('click', '#btnDelete', function(){
    let id = $(this).data('id');
    $('#delid').val(id);
});



