BigDecimal remainingQty = (BigDecimal)currentDateMap.get("remainingQty");
if (remainingQty.compareTo(ZERO) == 0) {
continue;
}
if (remainingQty.compareTo(quantityNotAvailableRem) >= 0) {
remainingQty = remainingQty.subtract(quantityNotAvailableRem);
currentDateMap.put("remainingQty", remainingQty);
GenericValue orderItemShipGrpInvRes = delegator.findByPrimaryKey("OrderItemShipGrpInvRes",
UtilMisc.toMap("orderId", genericResult.getString("orderId"),
"shipGroupSeqId", genericResult.getString("shipGroupSeqId"),
"orderItemSeqId", genericResult.getString("orderItemSeqId"),