}
private void handleOrderLines(Deviation deviation,
DeviationModel deviationModel, Order deviationOrder) {
PostShipment postShipment = deviation.getPostShipment();
ArrayListModel orderLines = deviationModel.getOrderLineArrayListModel();
if (postShipment != null && orderLines != null
&& orderLines.size() != 0) {
postShipment.setDeviation(deviation);
moveOrderLinesToPostShipment(postShipment, orderLines,
deviationOrder);
((DeviationManager) overviewManager).saveDeviation(deviation);
}
if (postShipment != null && postShipment.getOrderLines() != null
&& postShipment.getOrderLines().size() != 0) {
savePostShipment(postShipment, deviationOrder);
} else if (postShipment != null
&& (postShipment.getOrderLines() == null || postShipment
.getOrderLines().size() != 0)) {
Util
.showErrorDialog(
window,
"Ingen artikler",