GLMDebug.ERROR("InventoryBG", "addDueIn() on day " + day + ", refillTime=" + TimeUtils.dateString(refillTime));
if (logger.isErrorEnabled()) { logger.error("addDueIn() on day " + day + ", refillTime=" + TimeUtils.dateString(refillTime)); }
  private int addDueInSupply(Task refill) {    int totalFilled = 0;    boolean filled = true;    double qty = TaskUtils.getRefillQuantity(refill);    if (qty == 0.0) {      filled = false;    } else {      filled = true;      totalFilled++;    }    // Add Refill to daily schedule    // All times set to Midnight of that day    long refillTime = TaskUtils.getRefillTime(refill);    int day = convertTimeToDay(refillTime);    if (day >= 0) {      DueIn d = new DueIn(refill, filled);      addDueIn(d, day);      addDueInByRequestDay(d);    } else {      GLMDebug.ERROR("InventoryBG", "addDueIn() on day " + day + ", refillTime=" + TimeUtils.dateString(refillTime));    }    return totalFilled;  }