Subversion Repositories SmartDukaan

Rev

Rev 36532 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36532 Rev 36536
Line 62... Line 62...
62
    $(document).on('click', ".mk_moveToBill", function () {
62
    $(document).on('click', ".mk_moveToBill", function () {
63
        var warehouseId = $(this).data("warehouseid");
63
        var warehouseId = $(this).data("warehouseid");
64
        var transactionId = $(this).data("transactionid");
64
        var transactionId = $(this).data("transactionid");
65
        var orderId = $(this).data("orderid");
65
        var orderId = $(this).data("orderid");
66
        doGetAjaxRequestHandler(`${context}/om/moveToBill?warehouseId=${warehouseId}&orderId=${orderId}`, function (response) {
66
        doGetAjaxRequestHandler(`${context}/om/moveToBill?warehouseId=${warehouseId}&orderId=${orderId}`, function (response) {
67
            var result = typeof response === 'string' ? JSON.parse(response) : response;
67
            var result = response.response || response;
68
            if (result.moved === true) {
68
            if (result.moved === true) {
69
                alert("Order moved successfully");
69
                alert("Order moved successfully");
70
                loadTransactionDetail(transactionId, warehouseId, "transaction-detail-container");
70
                loadTransactionDetail(transactionId, warehouseId, "transaction-detail-container");
71
                return;
71
                return;
72
            }
72
            }