| Line 115... |
Line 115... |
| 115 |
var requestBody = JSON.stringify(orderBillingModels);
|
115 |
var requestBody = JSON.stringify(orderBillingModels);
|
| 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 (invoiceNumber) {
|
| 121 |
if (invoiceNumber) {
|
121 |
if (invoiceNumber) {
|
| 122 |
window.open(`${context}/om/downloadInvoice/${invoiceNumber}`, "_blank");
|
122 |
window.open(`${context}/om/downloadInvoice/${invoiceNumber}`, "_blank");
|
| 123 |
alert("bill generated successfully");
|
123 |
alert("bill generated successfully");
|
| 124 |
loadAllTransaction(warehouseId, "main-content");
|
124 |
loadAllTransaction(warehouseId, "main-content");
|
| 125 |
} else {
|
125 |
} else {
|