diff --git a/RFXtoRP_HsrPrepa.ftl b/RFXtoRP_HsrPrepa.ftl index 1ffa770..4f4e04f 100644 --- a/RFXtoRP_HsrPrepa.ftl +++ b/RFXtoRP_HsrPrepa.ftl @@ -62,7 +62,7 @@ <#assign includeHU = []> <#list preparation_line.despatched_ipg_list as despatched_ipg2> <#if despatched_ipg.hd_number == despatched_ipg2.hd_number > - <#assign includeHU += ["${despatched_ipg2.carton_number}"]> + <#assign includeHU = ["${despatched_ipg2.carton_number}"]> <#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitHUsAdded> diff --git a/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl b/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl index aa6e765..d0d5ded 100644 --- a/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl +++ b/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl @@ -12,8 +12,7 @@ "Payload": { - <#-- "IncludedHandlingunitIDs": [ <#list includeHU as hu> "${hu}"<#sep>,], --> - "IncludedHandlingunitIDs": [ includeHU <#sep>,<#sep>], +"IncludedHandlingunitIDs": [ <#list includeHU as hu> "${hu}"<#sep>,], "Information": { "ContainerType": "${preparation_line.despatched_hds_list[0].hd_type_code}", "Length": {