Add the external code when a whole order is imported as subcontrated task.

Although this operation is not permit by the interfaz, this one give us
clarity on the code. All subcontrated task have got the external code filled.

FEA: ItEr75S28CustomerIncommingCommunicationsLists
This commit is contained in:
Susana Montes Pedreira 2011-11-04 12:24:10 +01:00
parent e6a0d47078
commit 37175f6811

View file

@ -195,6 +195,7 @@ public class SubcontractServiceREST implements ISubcontractService {
order = (Order) orderElement;
order.setVersionForScenario(current, version);
order.useSchedulingDataFor(version);
order.setExternalCode(order.getCode());
} else {
order = wrapInOrder(current, version,
orderElement);