From 37175f68114e5f3965df222059cf2477076467fc Mon Sep 17 00:00:00 2001 From: Susana Montes Pedreira Date: Fri, 4 Nov 2011 12:24:10 +0100 Subject: [PATCH] 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 --- .../libreplan/ws/subcontract/impl/SubcontractServiceREST.java | 1 + 1 file changed, 1 insertion(+) diff --git a/libreplan-webapp/src/main/java/org/libreplan/ws/subcontract/impl/SubcontractServiceREST.java b/libreplan-webapp/src/main/java/org/libreplan/ws/subcontract/impl/SubcontractServiceREST.java index 33dccfa3d..e16bb175b 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/ws/subcontract/impl/SubcontractServiceREST.java +++ b/libreplan-webapp/src/main/java/org/libreplan/ws/subcontract/impl/SubcontractServiceREST.java @@ -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);