public void setApplied(PacklistV object, boolean applied,
WindowInterface window) {
OrderManager orderManager = (OrderManager) ModelUtil
.getBean("orderManager");
Order order = orderManager.findByOrderNr(object.getOrderNr());
if (applied) {
Date packlistDate = Util.getDate(window);
order.setPacklistReady(packlistDate);
} else {
order.setPacklistReady(null);
}
try {
orderManager.saveOrder(order);
} catch (ProTransException e) {
Util.showErrorDialog(window, "Feil", e.getMessage());