| Line 66... |
Line 66... |
| 66 |
checkedInventory.each(function(i,v){
|
66 |
checkedInventory.each(function(i,v){
|
| 67 |
markedBadArr.push({"remarks" : $(v).closest('li').find('textarea').val(),
|
67 |
markedBadArr.push({"remarks" : $(v).closest('li').find('textarea').val(),
|
| 68 |
"inventoryItemId":$(v).val()});
|
68 |
"inventoryItemId":$(v).val()});
|
| 69 |
});
|
69 |
});
|
| 70 |
var json = {"fofoOrderItemId":foi, "markedBadArr":markedBadArr};
|
70 |
var json = {"fofoOrderItemId":foi, "markedBadArr":markedBadArr};
|
| 71 |
doPostAjaxRequestWithJsonHandler('${rc.contextPath}/order/bad_return', JSON.stringify(json), function(data){
|
71 |
doPostAjaxRequestWithJsonHandler(context+'/order/bad_return', JSON.stringify(json), function(data){
|
| 72 |
alert('Credit Note generated');
|
72 |
alert('Credit Note generated');
|
| 73 |
window.open('${rc.contextPath}/credit-note/' + data.response, '_blank');
|
73 |
window.open('${rc.contextPath}/credit-note/' + data.response, '_blank');
|
| 74 |
loadSaleDetails(orderId,"sale-details-container");
|
74 |
loadSaleDetails(orderId,"sale-details-container");
|
| 75 |
$('#exampleModal').modal('hide');
|
75 |
$('#exampleModal').modal('hide');
|
| 76 |
|
76 |
|