inv.addNamedSchedule(ON_HAND,                     inventory.getOnHandSchedule()); inv.addNamedSchedule(DUE_IN,                      inventory.getDueInSchedule()); inv.addNamedSchedule(UNCONFIRMED_DUE_IN,          inventory.getUnconfirmedDueInSchedule()); inv.addNamedSchedule(REQUESTED_DUE_IN,            inventory.getRequestedDueInSchedule()); inv.addNamedSchedule(DUE_IN            +INACTIVE, inventory.getDueInSchedule()); inv.addNamedSchedule(UNCONFIRMED_DUE_IN+INACTIVE, inventory.getUnconfirmedDueInSchedule()); inv.addNamedSchedule(REQUESTED_DUE_IN  +INACTIVE, inventory.getRequestedDueInSchedule());
inv.addNamedSchedule(ON_HAND,                               inventory.getOnHandSchedule()); inv.addNamedSchedule(DUE_IN,                                inventory.getDueInSchedule()); inv.addNamedSchedule(UNCONFIRMED_DUE_IN,                    inventory.getUnconfirmedDueInSchedule()); inv.addNamedSchedule(REQUESTED_DUE_IN,                      inventory.getRequestedDueInSchedule()); inv.addNamedSchedule(PROJECTED_DUE_IN,                      inventory.getProjectedDueInSchedule()); inv.addNamedSchedule(PROJECTED_REQUESTED_DUE_IN,            inventory.getProjectedRequestedDueInSchedule());
  private UISimpleInventory getInventoryForClient(UIInventoryImpl inventory,						  boolean provider,						  Date cDay) {    UISimpleInventory inv = new UISimpleInventory();        inv.setAssetName(inventory.getAssetName());    inv.setUnitType(inventory.getUnitType());    inv.setProvider(provider); // ui uses this to determine chart labels    String scheduleType = inventory.getScheduleType();    if (scheduleType.equals(ScheduleType.OTHER)) {      scheduleType = PlanScheduleType.TOTAL_INVENTORY;      System.out.println("WARNING: Treating Other schedule as total inventory");    }    inv.setScheduleType(scheduleType);    inv.setBaseCDay(cDay);    if (scheduleType.equals(PlanScheduleType.TOTAL_CAPACITY)) {      inv.addNamedSchedule(ALLOCATED,   inventory.getDueOutLaborSchedule());      inv.addNamedSchedule(TOTAL_LABOR, inventory.getLaborSchedule());    } else if (scheduleType.equals(PlanScheduleType.ACTUAL_CAPACITY)) {      inv.addNamedSchedule(ALLOCATED, inventory.getDueOutLaborSchedule());      inv.addNamedSchedule(ON_HAND,   inventory.getOnHandSchedule());    } else if (scheduleType.equals(PlanScheduleType.TOTAL_INVENTORY)) {      inv.addNamedSchedule(ON_HAND,                     inventory.getOnHandSchedule());      inv.addNamedSchedule(DUE_IN,                      inventory.getDueInSchedule());      inv.addNamedSchedule(UNCONFIRMED_DUE_IN,          inventory.getUnconfirmedDueInSchedule());      inv.addNamedSchedule(REQUESTED_DUE_IN,            inventory.getRequestedDueInSchedule());      inv.addNamedSchedule(DUE_IN            +INACTIVE, inventory.getDueInSchedule());      inv.addNamedSchedule(UNCONFIRMED_DUE_IN+INACTIVE, inventory.getUnconfirmedDueInSchedule());      inv.addNamedSchedule(REQUESTED_DUE_IN  +INACTIVE, inventory.getRequestedDueInSchedule());      inv.addNamedSchedule(DUE_OUT,                     inventory.getDueOutSchedule());      inv.addNamedSchedule(PROJECTED_DUE_OUT,           inventory.getProjectedDueOutSchedule());                                 inv.addNamedSchedule(REQUESTED_DUE_OUT,           inventory.getRequestedDueOutSchedule());      inv.addNamedSchedule(PROJECTED_REQUESTED_DUE_OUT, inventory.getProjectedRequestedDueOutSchedule());//    inv.addNamedSchedule(REQUESTED_DUE_OUT_SHORTFALL, inventory.getDueOutShortfallSchedule());    }     else if (scheduleType.equals(inventory.NO_INVENTORY_SCHEDULE_JUST_CONSUME)){	inv.addNamedSchedule(DUE_IN,                     inventory.getDueInSchedule());	inv.addNamedSchedule(UNCONFIRMED_DUE_IN,         inventory.getUnconfirmedDueInSchedule());	inv.addNamedSchedule(REQUESTED_DUE_IN,           inventory.getRequestedDueInSchedule());	inv.addNamedSchedule(PROJECTED_DUE_IN,           inventory.getProjectedDueInSchedule());	inv.addNamedSchedule(PROJECTED_REQUESTED_DUE_IN, inventory.getProjectedRequestedDueInSchedule());	System.out.println("getInventoryForClient: returning schedule type: " + scheduleType);    }     else {      System.out.println("WARNING: Unsupported schedule type: " + 			 scheduleType);      return null;    }    return inv;  }