.getAdvancePercentage(progressType)));
}
private String getOrderState() {
String cssClass;
OrderStatusEnum state = taskElement.getOrderElement()
.getOrder().getState();
if (Arrays.asList(OrderStatusEnum.ACCEPTED,
OrderStatusEnum.OFFERED, OrderStatusEnum.STARTED,
OrderStatusEnum.OUTSOURCED).contains(
state)) {
if (taskElement.getAssignedStatus() == "assigned") {
cssClass = "order-open-assigned";
} else {
cssClass = "order-open-unassigned";
}
} else {
cssClass = "order-closed";
}
return "<font class='" + cssClass + "'>" + _(state.toString())
+ "</font>";
}