FavoriteLoadingAdd to favorites
    $("#debtor-customer-filter").on('submit', function(e) {
        e.preventDefault();
        var data = new FormData(this);

        $("#debtors-table").DataTable().destroy();
        $("#debtors-list").load("debtor/filterCustomerDebtorById", {
            debtorFilter: $("#customer-filter").val(), // This set's the status to fetch all records
            fromDate: $("#from-date").val(),
            toDate: $("#to-date").val(),
            cid: $("#customer-id").val()
        }, function (response,status,xhr) {
            $("#debtors-table").DataTable();
            fetchDebtors(response);
        });
    });

    function fetchDebtors(response) {
        $(this).html(response);
    }

Pin It on Pinterest

Share This