}
@Override
protected final void setApplied(final PaidV paidV, final boolean applied,
final WindowInterface window) {
PaidVManager paidVManager = (PaidVManager) ModelUtil
.getBean("paidVManager");
OrderManager orderManager = (OrderManager) ModelUtil
.getBean("orderManager");
Order order = orderManager.findByOrderNr(paidV.getOrderNr());
if (applied) {
Date paidDate = Util.getDate(window);
order.setPaidDate(paidDate);
} else {
order.setPaidDate(null);
}
try {
orderManager.saveOrder(order);
} catch (ProTransException e) {
Util.showErrorDialog(window, "Feil", e.getMessage());
e.printStackTrace();
}
paidVManager.refresh(paidV);
}