You are on page 1of 1

changeColor(self,movement) { color = "white"; if(movement.entity == null) { color = "#ffff99"; } else if(movement.entity.equalsIgnoreCase("Invoice")) { color = "#c1840a"; } else if(movement.entity.equalsIgnoreCase("InventoryTransfer")) { if(movement.entityId.

startsWith("IS")){ color = "#99ff66 ";} else if(movement.entityId.startsWith("RS")){ color ="#66 66ff";} else if(movement.entityId.startsWith("ARS")){ color ="#f fcc66";} } else if(movement.entity.equalsIgnoreCase("WorkEffort")) { color ="#ff3366"; } self.parent.parent.style = "background-color:"+color;

You might also like