}
private OrderLine setColliPackedAndSent(String colliName,
String orderLineArticlePath, PostShipment postShipment)
throws ProTransException {
Colli colli = new Colli();
colli.setColliName(colliName);
OrderLine orderLine = order.getOrderLine(orderLineArticlePath);
colli.addOrderLine(orderLine);
if (postShipment != null) {
postShipment.addOrderLine(orderLine);
postShipment.addColli(colli);
colli.setSent(postShipment.getSent());
colliManager.saveColli(colli);
postShipmentManager.savePostShipment(postShipment);
} else {
order.addColli(colli);
colli.setSent(order.getSent());
orderManager.saveOrder(order);
}
return orderLine;
}