GDDate today = new GDDate();
Incoming incomingToCompare = (Incoming) system.query(new GetIncoming(incoming.getId()));
GDDate paymentDayBill = incomingToCompare.getNextPaymentDate();
if (paymentDayBill.beforeDay(nextIncomingDate) && paymentDayBill.beforeDay(today)) {
item.setImage(new Image(null, "img/icoExpiradNotPayed.png"));
} else if (nextIncomingDate.beforeOrEqualsDay(todayPlusOneWeek) && nextIncomingDate.afterOrEqualsDay(today)) {
item.setImage(new Image(null, "img/icoWarningExpiration.png"));
} else if (nextIncomingDate.beforeDay(today)) {
item.setImage(new Image(null, "img/icoExpirad.png"));