diff --git a/RFXtoRP_HsrPrepa.ftl b/RFXtoRP_HsrPrepa.ftl index 4ed821c..27e4d38 100644 --- a/RFXtoRP_HsrPrepa.ftl +++ b/RFXtoRP_HsrPrepa.ftl @@ -18,6 +18,7 @@ <#assign preparationOrder = JsonUtil.jsonToMap(dataRfx)> <#if preparationOrder.total_lv_validated !=0> + <#if preparationOrder.preparation_type_code=="010" || (preparationOrder.preparation_type_code=="030" && preparationOrder.preparation_line_lst[0].preparation_order_originator_reference!="")> [ { <#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitGoodsPrepared> @@ -89,6 +90,9 @@ <#assign refIDHmap ={}> ] + <#else> + <#stop> <#-- Preparation Type not supported--> + <#else> <#stop "no confirmed quantity for the preparation - preparation closed">