this.setDeliveryNote(new DeliveryNote());
}
@Override
public void setJbsBaseObject(JbsBaseObject jbsBaseObject) {
DeliveryNote deliveryNote = (DeliveryNote) jbsBaseObject;
//We have to get the positions from the database also
if ((deliveryNote != null) && (this.getDlgState() == DlgState.dsEdit)) {
logger.debug("Retrieving positions for delivery-note " + deliveryNote.getId());
try {
DeliveryNotesRemote deliveryNotes = (DeliveryNotesRemote) ClientTools.getRemoteBean(DeliveryNotesRemote.class);
DeliveryNote exDelivNote = deliveryNotes.findDataset(deliveryNote.getId(), true);
deliveryNote = exDelivNote;
} catch (NamingException e) {
logger.error("Error retrieving delivery-note.", e);
}
}