incomingOrders.add(incomingOrder);
}
}
private Order createOrder(final ImportOrderV importOrderV) {
Order incomingOrder = new Order();
incomingOrder.setOrderNr(importOrderV.getNumber1());
Contact contact = getContact(importOrderV);
incomingOrder.setCustomer(getCustomer(contact));
setOrderDate(importOrderV, incomingOrder);
incomingOrder.setAgreementDate(Util.getCurrentDate());
incomingOrder.setSalesman(importOrderV.getSalesMan());
setDeliveryAddress(incomingOrder, importOrderV);
setTelephoneNr(incomingOrder, contact);
setProductArea(incomingOrder, importOrderV);
incomingOrder.setProbability(importOrderV.getProbability());
incomingOrder.setTelephoneNrSite(importOrderV.getTelephoneNrSite());
setPacklistReady(incomingOrder);
incomingOrder.setMaxTrossHeight(importOrderV.getMaksHoyde());
return incomingOrder;
}