orderHeader = session.getDelegator().findByPrimaryKey("OrderHeader", UtilMisc.toMap("orderId", orderId));
} catch (GenericEntityException e) {
Debug.logError(e, module);
}
if (orderHeader == null) {
input.clear();
pos.showDialog("dialog/error/ordernotfound");
return;
} else {
Timestamp orderDate = orderHeader.getTimestamp("orderDate");
if (orderDate.after(openDate)) {