Subversion Repositories SmartDukaan

Rev

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

$(function() {
        $(document).on('click', ".inventory-listing", function() {
                loadInventory("main-content");
        });

        $(document).on('click', "#warehouse-wise-billing",
                        function() {
                                var warehouseId = $('#warehouseMap').val();
                                doGetAjaxRequestHandler(context + "/inventory?warehouseIds=" + warehouseId,
                                        function(response) {
                                                $('#' + "main-content").html(response);
                                                console.log(response)
                                        });
                        });
});

function loadInventory(domId) {
        doGetAjaxRequestHandler(context + "/inventory",
                function(response) {
                        $('#' + domId).html(response);

                });
}