public void voidShip() throws Exception {
Iterator<?> iterator = shipHeader.getShipDetails().iterator();
while (iterator.hasNext()) {
ShipDetail shipDetail = (ShipDetail) iterator.next();
int shipQty = shipDetail.getItemShipQty();
InventoryEngine engine = new InventoryEngine(shipDetail.getOrderItemDetail().getItem());
engine.adjustQty(shipQty);
engine.adjustBookedQty(shipQty);
}
shipHeader.setShipStatus(Constants.ORDERSTATUS_VOIDED);
shipHeader.setRecUpdateBy(user.getUserId());
shipHeader.setRecUpdateDatetime(new Date());
}