Subversion Repositories SmartDukaan

Rev

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

Rev 33269 Rev 33270
Line 116... Line 116...
116
 
116
 
117
        // Perform further actions with the requestBody, such as sending it in an AJAX request
117
        // Perform further actions with the requestBody, such as sending it in an AJAX request
118
        console.log('Request Body:', requestBody);
118
        console.log('Request Body:', requestBody);
119
 
119
 
120
        doPostAjaxRequestWithJsonHandler(`${context}/om/addBillingDetailsForGrouppedOrders/?warehouseId=${warehouseId}&transactionId=${transactionId}`, requestBody, function (response) {
120
        doPostAjaxRequestWithJsonHandler(`${context}/om/addBillingDetailsForGrouppedOrders/?warehouseId=${warehouseId}&transactionId=${transactionId}`, requestBody, function (response) {
121
            if (response) {
121
            if (invoiceNumber) {
-
 
122
                window.open(`${context}/om/downloadInvoice/${invoiceNumber}`, "_blank");
122
                alert("bill generated successfully");
123
                alert("bill generated successfully");
123
                loadAllTransaction(warehouseId, "main-content");
124
                loadAllTransaction(warehouseId, "main-content");
124
            } else {
125
            } else {
125
                alert("something went wrong");
126
                alert("something went wrong");
126
            }
127
            }