this.setOrderConfirmation(new OrderConfirmation());
}
@Override
public void setJbsBaseObject(JbsBaseObject jbsBaseObject) {
OrderConfirmation orderConfirmation = (OrderConfirmation) jbsBaseObject;
//We have to get the positions from the database also
if ((orderConfirmation != null) && (this.getDlgState() == DlgState.dsEdit)) {
logger.debug("Retrieving positions for order confirmation " + orderConfirmation.getId());
try {
OrderConfirmationsRemote orderConfirmations = (OrderConfirmationsRemote) ClientTools.getRemoteBean(OrderConfirmationsRemote.class);
OrderConfirmation exDelivNote = orderConfirmations.findDataset(orderConfirmation.getId(), true);
orderConfirmation = exDelivNote;
} catch (NamingException e) {
logger.error("Error retrieving order confirmation.", e);
}
}