Subversion Repositories SmartDukaan

Rev

Rev 35458 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

$(function() {
        $(document).on('click', ".good_inventory", function() {
                loadGoodInventory("main-content", "");
        });

        $(document).on('click', ".catalog", function() {
                // clear pendingOrderId
                if (typeof pendingPO != "undefined") {
                        delete pendingPO;
                        delete pendingPOCustomer;
                }
                loadCatalog("main-content", "");
        });
        var accesories = false;
        $(document).on('click', '.accesoriesClass', function() {
                accesories = true;

                doGetAjaxRequestHandler(context + "/getCatalog?accesories=" + true,
                        function(response) {
                                $('#main-content').html(response);
                        });


        });

        var brand = null;
        $(document).on('click', '.cover', function() {
                console.log('hello');

                brand = $(this).data('stockbrand');
                console.log(brand);
                doGetAjaxRequestHandler(context + "/getCatalog?brand=" + brand,
                        function(response) {
                                $('#main-content').html(response);
                        });
        });

        $(document).on('change', '.add-compare-checkbox', function() {

                let catalogitemid = [$(this).data("catalogitemid")];
                let checked = $(this).is(':checked');
                console.log(checked);
                $cbToModify = $(this).closest('table').find('tr').find('input:checkbox').filter(function() {
                        return ($(this).data("catalogitemid") == catalogitemid && $(this).is(':checked') != checked);
                });

                let count = 0;
                $cbToModify.prop("checked", checked).prop("disabled", checked);
                let cbToCondition = $(this).closest('table').find('tr').find('input:checkbox').filter(function() {
                        return ($(this).is(':checked') != checked);
                });

                $('#add-to-compare-check').closest('table').find('tr').each(function() {

                        var row = $(this);

                        if (row.find('input[name="compare-check"]').is(':checked')) {
                                count++;

                        }
                });

                console.log(count);
                $cbToModify.prop("checked", checked).prop("disabled", checked);

        });

        $(document).on('click', "#Go-compare-button", function() {

                console.log('helo');
                var gocatalogitemid = [];

                $('table').find('input[type="checkbox"]:enabled:checked').each(function(el) {
                        gocatalogitemid.push($(this).data("catalogitemid"));
                });
                console.log(gocatalogitemid);
                if (gocatalogitemid.length < 4) {

                        doAjaxRequestHandler(`${context}/getProductCompareInfo?catalogIds=` + gocatalogitemid.join(","), "GET",
                                function(response) {
                                        console.log(response)
                                        $('#' + "main-content").html(response);
                                });
                }

        });


        $(document).on('click', '#catalog-button', function() {

                loadSimilarCatalog("main-content", "");
        });

        $(document).on('click', '.target-slide', function() {

                loadOutletCategories("main-content");
        });



        $(document).on('click', '.view-invoices', function() {
                loadInvoice();
        });


        $(document).on('click', ".review_order", function() {
                loadOrder("main-content");
        });

        $(document).on('click', ".payment-pending-order", function() {
                loadPaymentPendingOrder("main-content");
        });

        $(document).on('click', ".notify_cancel", function() {
                loadNotifyCancelOrder("main-content");
        });

        $(document).on('click', ".keep-a-tab", function() {
                loadtabOrder("main-content");
        });

        $(document).on('click', ".notify_order", function() {
                loadnotifyOrder("main-content");
        });

        $(document).on('click', ".item_aging", function() {
                getInventoryItemAgingByInterval("main-content", "");
        });

        $(document).on('click', "#item-aging-search-button", function() {
                searchContent = $("#item-aging-search-text").val();
                if (typeof (searchContent) == "undefined" || !searchContent) {
                        searchContent = "";
                }
                getInventoryItemAgingByInterval("main-content", searchContent);
        });

        $(document).on("keyup", "#item-aging-search-text", function(e) {
                var keyCode = e.keyCode || e.which;
                if (keyCode == 13) {
                        $("#item-aging-search-button").click();
                }
        });

        $(document).on('click', "#item-aging-paginated .next", function() {
                var end = $("#item-aging-paginated .end").text();
                getItemAgingNextPreviousItems(end, "");
                $("#item-aging-paginated .next").blur();
        });

        $(document).on('click', "#item-aging-paginated .previous", function() {
                var start = $("#item-aging-paginated .start").text();
                getItemAgingNextPreviousItems(start - 11, "");
                $("#item-aging-paginated .previous").blur();
        });

        $(document).on('click', ".download_aging_report", function() {
                downloadAgingReport();
        });

        $(document).on('click', ".download_reports", function() {
                downloadReports();
        });

        $(document).on('click', ".item-ledger-report-download-page", function() {
                loadItemLedgerReportDownloadPage("main-content");
        });

        $(document).on('click', ".bad_inventory", function() {
                loadBadInventory("main-content", "");
        });

        $(document).on('click', "#good-inventory-paginated .next",
                function() {
                        var searchText = $("#good-inventory-search-text").val();
                        if (typeof (searchText) == "undefined" || !searchText) {
                                searchText = "";

                        }
                        var params = {};
                        params['searchTerm'] = searchText;
                        loadPaginatedNextItems('/getPaginatedCurrentInventorySnapshot',
                                params, 'good-inventory-paginated',
                                'good-inventory-table', null);
                        $(this).blur();
                });

        $(document).on('click', "#good-inventory-paginated .previous",
                function() {
                        var searchText = $("#good-inventory-search-text").val();
                        if (typeof (searchText) == "undefined" || !searchText) {
                                searchText = "";
                        }
                        var params = {};
                        params['searchTerm'] = searchText;
                        loadPaginatedPreviousItems(
                                '/getPaginatedCurrentInventorySnapshot', params,
                                'good-inventory-paginated', 'good-inventory-table',
                                null);
                        $(this).blur();
                });

        $(document).on('click', "#good-inventory-search-button", function() {
                var searchText = $("#good-inventory-search-text").val();
                if (typeof (searchText) == "undefined" || !searchText) {
                        searchText = "";
                }
                loadGoodInventorySearchInfo(searchText);
        });

        $(document).on("keyup", "#good-inventory-search-text", function(e) {
                var keyCode = e.keyCode || e.which;
                if (keyCode == 13) {
                        $("#good-inventory-search-button").click();
                }
        });

        $(document).on('click', "#catalog-paginated .next",
                function() {
                        var searchText = $("#catalog-search-text").val();
                        if (typeof (searchText) == "undefined" || !searchText) {
                                searchText = "";
                        }

                        var searchItem = $("#catalog-search-text-compare").val();
                        console.log(searchItem)

                        var params = {};

                        if (searchItem) {
                                params['itemId'] = currentItem.itemId;
                        }
                        console.log(brand);
                        if (brand != null) {
                                params['brand'] = brand;
                        }

                        if (accesories == true) {
                                params['accesories'] = accesories;
                        }


                        params['searchTerm'] = searchText;
                        console.log(params)
                        loadPaginatedCatalogNextItems('/getPaginatedCatalog', params,
                                'catalog-paginated', 'catalog-table', null);
                        $(this).blur();
                });

        $(document).on('click', "#catalog-paginated .previous", function() {
                var searchText = $("#catalog-search-text").val();
                if (typeof (searchText) == "undefined" || !searchText) {
                        searchText = "";
                }
                var searchItem = $("#catalog-search-text-compare").val();
                console.log(searchItem)

                var params = {};

                if (searchItem) {
                        params['itemId'] = currentItem.itemId;
                }
                console.log(brand);
                if (brand != null) {
                        params['brand'] = brand;
                }

                if (accesories == true) {
                        params['accesories'] = accesories;
                }
                params['searchTerm'] = searchText;
                console.log(params)

                loadPaginatedCatalogPreviousItem('/getPaginatedCatalog', params,
                        'catalog-paginated', 'catalog-table', null);
                $(this).blur();
        });

        $(document).on('click', "#catalog-search-button", function() {
                var searchText = $("#catalog-search-text").val();
                if (typeof (searchText) == "undefined" || !searchText) {
                        searchText = "";
                }
                loadCatalogSearchInfo(searchText);
        });

        $(document).on("keyup", "#catalog-search-text", function(e) {
                var keyCode = e.keyCode || e.which;
                if (keyCode == 13) {
                        $("#catalog-search-button").click();
                }
        });

        $(document).on("click", ".cancellation",
                function(e) {
                        orderid = $(this).data('orderid');
                        itemId = $(this).data('itemid');

                        doGetAjaxRequestHandler(context
                                + "/getcancelOrderItems?itemId=" + itemId, function(
                                response) {
                                $('.cancel-order-container .modal-content').html(response);
                                $("#textreason").hide();
                        });
                });

        $(document).on("click", ".cancel-order-submit", function(e) {
                requestcancelOrder();
        });
        $(document).on("click", ".keepatab", function(e) {
                orderid = $(this).data('orderid');
                cancelOrder(orderid, "KEEP_A_TAB")

        });

        $(document).on('click', ".request-cancel", function() {

        });

        $(".mk_button").on("click", function() {

        });

        $(document).on("click", ".closeOrder",
                function(e) {
                        orderid = $(this).data('orderid');
                        if (confirm("Are you sure you want to close the order") == true) {

                                doPostAjaxRequestHandler(context
                                        + "/closeOrder?orderId=" + orderd,
                                        function(response) {
                                                if (response == 'true') {
                                                        alert("successfully close");
                                                        loadtabOrder("main-content");
                                                }
                                        });
                        }

                });
        $(document).on('change', '#notify-table :checkbox', function(e) {
                var colormessage = [];
                $("#notify-table input[type=checkbox]:checked").each(function() {

                        var row = $(this).closest("tr")[0];
                        colormessage.push(row.cells[0].innerText);

                        console.log(colormessage)
                });

                $("#colorValue").text(colormessage);
        });

        $(document).on('change', '#cancel-order-table :checkbox', function(e) {
                var orderId = [];

                $("#cancel-order-table input[type=checkbox]:checked").each(function() {
                        var currentRow = $(this).closest("tr");

                        orderId.push(currentRow.find("td:eq(2)").html());

                });

                selectedOrderId = $('#orderIds').val(orderId);
                console.log(selectedOrderId);
        });

        $(document).on('change', '#overridemessage', function() {
                if ($(this).is(':checked')) {
                        $('#textnotifymessage').show();
                        $('#textnotifymessage').focus();
                } else {
                        $('#textnotifymessage').hide();
                }
        });

        $(document).on("click", ".notify-cancel-order-submit",
                function(e) {
                        var jsonObject = {};
                        var orderAndItemIdsJson = [];
                        var orderAndItemIds;
                        var orderIds;
                        var message;
                        message = $('#textNotifyCancellationMessage').val();

                        var partnerchecked = $("input[name='partnerCancelOrderCheck']:checked").length;

                        if (!partnerchecked) {
                                alert("You must check at least one partner.");
                                return false;
                        }

                        if (message === "") {
                                alert("message is required");
                                return false;
                        }

                        $('#partner-cancel-order-table')
                                .find('tr')
                                .each(
                                        function() {
                                                var row = $(this);

                                                console.log(row);
                                                if (row
                                                        .find(
                                                                'input[name="partnerCancelOrderCheck"]')
                                                        .is(':checked')) {
                                                        var currentRow = $(this)
                                                                .closest("tr");

                                                        var col5 = currentRow.find(
                                                                "td:eq(1)").html();
                                                        var col6 = currentRow.find(
                                                                "td:eq(2)").html();

                                                        orderIds = {
                                                                "orderId": col6,
                                                                "olditemId": col5
                                                        }
                                                        orderAndItemIdsJson
                                                                .push(orderIds)

                                                }

                                        });

                        jsonObject['orderIds'] = orderAndItemIdsJson;
                        jsonObject['message'] = message
                        console.log(jsonObject)

                        if (confirm("Are you sure you want to notify the order") == true) {

                                doPostAjaxRequestWithJsonHandler(context
                                        + "/notifyCancelOrder", JSON
                                        .stringify(jsonObject), function (response) {
                                        if (response == 'true') {
                                                alert("successfully notify");
                                                $('#notifyCancelOrder').modal('hide');
                                                $('.modal-backdrop').remove();
                                                loadOrder("main-content");
                                        }
                                });
                        }

                });
        $(document).on("click", ".notify-submit",
                function(e) {

                        var jsonObject = {};
                        var orderIdsJSon = [];
                        var ItemIdsJson = [];
                        var itemIds;
                        var orderIds;
                        var message;

                        if ($('#overridemessage').is(':checked')) {
                                message = $('#textnotifymessage').val();
                        } else {
                                message = $('#notifymsg').text();
                        }

                        console.log(message);
                        var itemchecked = $("input[name='itemCheck']:checked").length;

                        if (!itemchecked) {
                                alert("You must check at least one item.");
                                return false;
                        }
                        var partnerchecked = $("input[name='partnerCheck']:checked").length;

                        if (!partnerchecked) {
                                alert("You must check at least one partner.");
                                return false;
                        }

                        if (message === "") {
                                alert("message is required");
                                return false;
                        }

                        $('#notify-table')
                                .find('tr')
                                .each(
                                        function() {
                                                var row = $(this);

                                                console.log(row);
                                                if (row.find(
                                                        'input[name="itemCheck"]')
                                                        .is(':checked')) {
                                                        var currentRow = $(this)
                                                                .closest("tr");

                                                        var col1 = currentRow
                                                                .find(
                                                                        "td:eq(0) input[type='checkbox']")
                                                                .val(); // get current
                                                        // row 1st TD
                                                        // value
                                                        var col2 = getDatesFromPicker(currentRow.find("td:eq(1) input[name='responseTime']")).startDate;
                                                        // current
                                                        // row 2nd TD
                                                        var col3 = getDatesFromPicker(currentRow.find("td:eq(2) input[name='procuredDate']")).startDate;
                                                        // get current
                                                        // row 3rd TD

                                                        itemIds = {
                                                                "itemId": col1,
                                                                "responseTime": col2,
                                                                "procuredTime": col3

                                                        }
                                                        ItemIdsJson.push(itemIds);
                                                }

                                        });

                        $('#notify-order-table').find('tr').each(
                                function() {
                                        var row = $(this);

                                        console.log(row);
                                        if (row.find('input[name="partnerCheck"]')
                                                .is(':checked')) {
                                                var currentRow = $(this).closest("tr");

                                                var col5 = currentRow.find("td:eq(2)")
                                                        .html();
                                                var col6 = currentRow.find("td:eq(1)")
                                                        .html();

                                                orderIds = {
                                                        "orderId": col5,
                                                        "olditemId": col6
                                                }
                                                orderIdsJSon.push(orderIds)
                                        }
                                });

                        jsonObject['itemIds'] = ItemIdsJson;
                        jsonObject['orderIds'] = orderIdsJSon;
                        jsonObject['message'] = message;

                        console.log(jsonObject)

                        if (confirm("Are you sure you want to notify the order") == true) {

                                doPostAjaxRequestWithJsonHandler(context
                                        + "/notifyOrder", JSON
                                        .stringify(jsonObject), function (response) {
                                        if (response == 'true') {
                                                alert("successfully notify");
                                                $('#notifyOrder').modal('hide');
                                                $('.modal-backdrop').remove();
                                                loadOrder("main-content");
                                        }
                                });
                        }

                });

        $(document).on("click", ".change-notify-request",
                function(e) {

                        var jsonObject = {};
                        var orderIdsJSon = [];
                        var orderIds;

                        $('#notify-cancel-order-list-table').find('tr').each(
                                function() {
                                        var row = $(this);

                                        console.log(row);
                                        if (row.find(
                                                'input[name="cancelOrderCheck"]')
                                                .is(':checked')) {
                                                var currentRow = $(this).closest("tr");
                                                var col5 = currentRow.find("td:eq(1)")
                                                        .html();
                                                var col6 = currentRow.find("td:eq(2)")
                                                        .html();

                                                orderIds = {
                                                        "orderId": col6,
                                                        "olditemId": col5
                                                }
                                                orderIdsJSon.push(orderIds)
                                        }
                                });
                        console.log(orderIdsJSon)
                        jsonObject['orderIds'] = orderIdsJSon;
                        console.log(jsonObject)
                        if (confirm("Are you sure you want to update notify order") == true) {

                                doPostAjaxRequestWithJsonHandler(context
                                        + "/changeNotifyCancelRequest", JSON
                                        .stringify(jsonObject), function (response) {
                                        if (response == 'true') {
                                                alert("successfully Update");
                                                $('#notifyCancelOrderList').modal('hide');
                                                $('.modal-backdrop').remove();
                                                loadNotifyCancelOrder("main-content");
                                        }
                                });
                        }
                });

});

function getItemColor(catalogId, itemId) {
        console.log(catalogId);

        doGetAjaxRequestHandler(context + "/getNotifyItemColor?catalogItemId="
                + catalogId + "&itemId=" + itemId, function(response) {
                $('.notify-container .modal-content').html(response);
                $('#textnotifymessage').hide();
        });
}

function getItems(catalogItemId) {
        doGetAjaxRequestHandler(context + "/getItems?catalogItemId="
                + catalogItemId, function(response) {
                $('.notify-cancel-order-container .modal-content').html(response);

        });
}

function loadGoodInventory(domId, search_text) {
        doGetAjaxRequestHandler(context
                + "/getCurrentInventorySnapshot?searchTerm=" + search_text,
                function(response) {
                        $('#' + domId).html(response);
                });
}

function loadCatalog(domId, search_text) {
        doGetAjaxRequestHandler(context + "/getCatalog?searchTerm=" + search_text,
                function(response) {
                        $('#' + domId).html(response);
                });

}

function loadSimilarCatalog(domId, catalogItemId) {
        console.log(currentItem);
        var searchText = $("#catalog-search-text-compare").val();
        console.log(searchText)
        doGetAjaxRequestHandler(context + "/getCatalog?itemId=" + currentItem.itemId,
                function(response) {
                        $('#' + domId).html(response);

                        $("#catalog-search-text-compare").val(currentItem.itemDescription)
                });

}


function loadOrder(domId) {
        doGetAjaxRequestHandler(context + "/getInProcessOrder", function(response) {
                $('#' + domId).html(response);
        });

}

function loadPaymentPendingOrder(domId) {
        doGetAjaxRequestHandler(context + "/getPaymentPendingOrder", function(response) {
                $('#' + domId).html(response);
        });

}

function loadtabOrder(domId) {
        doGetAjaxRequestHandler(context + "/getKeepInTabOrder", function(response) {
                $('#' + domId).html(response);
        });

}

function loadnotifyOrder(domId) {
        doGetAjaxRequestHandler(context + "/getAllNotifyOrder", function(response) {
                $('#' + domId).html(response);
        });

}

function getInventoryItemAgingByInterval(domId, searchContent) {
        doPostAjaxRequestWithJsonHandler(
                context + "/getInventoryItemAgingByInterval?searchContent="
                + searchContent, JSON.stringify([5, 15, 30, 45]),
                function(response) {
                        $('#' + domId).html(response);
                });
}

function downloadAgingReport() {
        data = JSON.stringify([15, 30, 60, 90]), doAjaxPostDownload(context
                + "/downloadInventoryItemAgingByInterval", data,
                "InventoryItemAging.xlsx");

}

function downloadReports() {
        doGetAjaxRequestHandler(context + "/reports", function(response) {
                $('#main-content').html(response);
        });
}

function downloadItemLedgerReport() {
        console.log("downloadItemLedgerReport Button clicked");
        let itemLedgerRangedPicker = getDatesFromPicker('#ledgerDuration');
        let dateWise = $("#dateWise").get(0).checked;
        doAjaxGetDownload(context + "/itemLedger/complete/download?startDateTime="
                + itemLedgerRangedPicker.startDate + "&endDateTime=" + itemLedgerRangedPicker.endDate + "&dateWise=" + dateWise,
                "ItemCompleteLedegerReport.xlsx");
}

function getItemAgingNextPreviousItems(offset, searchContent) {
        console.log("getItemAgingNextPreviousItems() called");
        doPostAjaxRequestWithJsonHandler(context
                + "/getInventoryItemAgingByInterval?offset=" + offset
                + "&searchContent=" + searchContent, JSON
                .stringify([5, 15, 30, 45]), function (response) {
                $('#main-content').html(response);
        });

}

function loadBadInventory(domId, search_text) {
        doGetAjaxRequestHandler(context + "/getBadInventorySnapshot?searchTerm="
                + search_text, function(response) {
                $('#' + domId).html(response);
        });
}

function loadGoodInventorySearchInfo(search_text) {
        loadGoodInventory("main-content", search_text);
}

function loadCatalogSearchInfo(search_text) {
        loadCatalog("main-content", search_text);
}

function loadItemLedgerReportDownloadPage(domId) {
        doGetAjaxRequestHandler(context + "/itemLedger/downloadPage", function(
                response) {
                $('#' + domId).html(response);
        });
}
function myFunction() {
        var val = $("#selectreason").val();
        console.log(val);
        if (val == "other") {
                $("#textreason").show();
        } else {
                $("#textreason").hide();
        }

}
function requestcancelOrder() {
        var jsonObject = {};
        var orderIdsJson = [];

        val = $('#selectreason').val();
        if (val == "other") {
                reason = $('#textreason').val();
        } else {
                reason = val;
        }
        console.log(reason);

        if (reason == "" || reason == null || reason == undefined) {
                alert("reason field can't be empty");
                return false;
        }

        var partnerOrderCheck = $("input[name='partnerOrderCheck']:checked").length;

        if (!partnerOrderCheck) {
                alert("You must check at least one order.");
                return false;
        }

        var orderIds = $('#orderIds').val()
        selectedOrder = orderIds.split(',');
        console.log(selectedOrder);
        jsonObject['orderIds'] = selectedOrder;
        jsonObject['reason'] = reason;

        console.log(jsonObject)

        if (confirm("Are you sure you want to cancel the order") == true) {

                doPostAjaxRequestWithJsonHandler(context + "/cancelOrder", JSON
                        .stringify(jsonObject), function(response) {
                        if (response == 'true') {
                                alert("successfully cancel");
                                $('#cancelOrder').modal('hide');
                                $('.modal-backdrop').remove();
                                loadOrder("main-content");
                        }
                });
        }

}

function loadNotifyCancelOrder(domId) {
        doGetAjaxRequestHandler(context + "/getNotifiedCancelOrder", function(
                response) {
                $('#' + domId).html(response);
        });
}

function loadOutletCategories(domId) {
        doGetAjaxRequestHandler(context + "/getTargetInfo", function(
                response) {
                $('#' + domId).html(response);
        });
}

function getNotifyCancelItems(itemId, OrderId) {
        doGetAjaxRequestHandler(context + "/getNotifyItems?itemId=" + itemId,
                function(response) {
                        $('.notify-cancel-order-Items-container .modal-content').html(
                                response);

                });
}

function loadInvoice(serialNumber) {
        let url = `${context}/view-invoices`;
        if (typeof serialNumber != "undefined") {
                url = `${url}?serialNumber=${serialNumber}`;
                doAjaxGetDownload(url, `invoice-${serialNumber}.pdf`)
        } else {
                doGetAjaxRequestHandler(url, function(response) {
                        $('#main-content').html(response);
                });
        }
}


$(document).on('click', '.model-sku-update', function () {
        doGetAjaxRequestHandler(context + "/getCategorisedCatalog",
                function (response) {
                        $('#main-content').html(response);
                });

});

$(document).on('click', '.fetch-cataogrised-catalog', function () {
        getBrnadWiseCatalogMovement();
});

$(document).on('click', '.catalog-movement-history-mk', function () {
        let catalogId = $(this).data('catalogid');
        doGetAjaxRequestHandler(context + "/getCatalogMovementHistory?catalogId=" + catalogId,
                function (response) {
                        $('#modal-movement-history').html(response);
                });

});


$(document).on('click', '.create-update-button', function () {
        let brand = $("#catalog-brand").val();
        let catalogId = $('#createUpdateStatus .model-id').val();
        let status = $('#createUpdateStatus .catalog-status').val();
        let startDate = $('#createUpdateStatus .start-date').val();
        let endDate = $('#createUpdateStatus .end-date').val();
        doGetAjaxRequestHandler(context + "/createUpdateCatalogMovement?catalogId=" + catalogId + "&status=" + status + "&startDate=" + startDate + "&endDate=" + endDate + "&brand=" + brand,
                function (response) {
                        if (response) {
                                alert("Successfully added catalog movement status");
                                $('#createUpdateStatus').modal('hide');
                                getBrnadWiseCatalogMovement();
                        }

                });

});

$(document).on('click', '.update-catalog-status-mk', function () {
        let catalogId = $(this).data('catalogid');

        $('#createUpdateStatus select[name="modelNumber"]').val(catalogId);
        $('#createUpdateStatus select[name="modelNumber"]').multiselect('rebuild');

        $('#createUpdateStatus').modal('show');
});

function getBrnadWiseCatalogMovement() {
        let brand = $("#catalog-brand").val();
        doGetAjaxRequestHandler(context + "/getCatalogMovementByBrand?brand=" + brand,
                function (response) {
                        $('#categoriesed-catalog-list-mk').html(response);
                });
}