Subversion Repositories SmartDukaan

Rev

Rev 26714 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26714 Rev 30497
Line 68... Line 68...
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(context+'/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(`${context}/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
			
77
		});
77
		});
78
	}
78
	}
79
});	
79
});	
80
80