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