Subversion Repositories SmartDukaan

Rev

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

Rev 33387 Rev 33403
Line 37... Line 37...
37
            }
37
            }
38
 
38
 
39
        });
39
        });
40
    });
40
    });
41
 
41
 
-
 
42
    $(document).on('click', ".mk_moveToBill", function () {
-
 
43
        var warehouseId = $(this).data("warehouseid");
-
 
44
        var orderId = $(this).data("orderid");
-
 
45
        doGetAjaxRequestHandler(`${context}/om/moveToBill?warehouseId=${warehouseId}&orderId=${orderId}`, function (response) {
-
 
46
        });
-
 
47
    });
42
    $(document).on('click', ".changeWarehouse-mk", function () {
48
    $(document).on('click', ".changeWarehouse-mk", function () {
43
        var itemId = $(this).data("itemid");
49
        var itemId = $(this).data("itemid");
44
        var warehouseId = $(this).data("warehouseid");
50
        var warehouseId = $(this).data("warehouseid");
45
        var orderId = $(this).data("orderid");
51
        var orderId = $(this).data("orderid");
46
        console.log('warehouse', warehouseId);
52
        console.log('warehouse', warehouseId);
Line 118... Line 124...
118
        doPostAjaxRequestWithJsonHandler(`${context}/om/addBillingDetailsForGrouppedOrders/?warehouseId=${warehouseId}&transactionId=${transactionId}`, requestBody, function (invoiceNumber) {
124
        doPostAjaxRequestWithJsonHandler(`${context}/om/addBillingDetailsForGrouppedOrders/?warehouseId=${warehouseId}&transactionId=${transactionId}`, requestBody, function (invoiceNumber) {
119
            if (invoiceNumber) {
125
            if (invoiceNumber) {
120
                alert("bill generated successfully");
126
                alert("bill generated successfully");
121
                setTimeout(function () {
127
                setTimeout(function () {
122
                    window.open(`${context}/om/downloadInvoice/${invoiceNumber}`, "_blank");
128
                    window.open(`${context}/om/downloadInvoice/${invoiceNumber}`, "_blank");
123
                }, 3000, );
129
                }, 3000,);
124
                loadAllTransaction(warehouseId, "main-content");
130
                loadAllTransaction(warehouseId, "main-content");
125
            } else {
131
            } else {
126
                alert("something went wrong");
132
                alert("something went wrong");
127
            }
133
            }
128
        });
134
        });