Controle line_list

This commit is contained in:
Laurie MONTANT 2025-08-06 10:12:28 +02:00
parent db7d673b07
commit fa59170f4d
2 changed files with 79 additions and 68 deletions

View File

@ -19,6 +19,7 @@
<#if preparationOrder.total_lv_validated?? && preparationOrder.total_lv_validated !=0> <#if preparationOrder.total_lv_validated?? && preparationOrder.total_lv_validated !=0>
<#if preparationOrder.preparation_type_code=="010" || preparationOrder.preparation_type_code=="030"> <#if preparationOrder.preparation_type_code=="010" || preparationOrder.preparation_type_code=="030">
<#if preparationOrder.preparation_line_lst??>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitGoodsPrepared> <#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitGoodsPrepared>
@ -90,6 +91,10 @@
</#list> </#list>
<#assign refIDHmap ={}> <#assign refIDHmap ={}>
] ]
<#else>
<#-- No line-->
<#stop>
</#if>
<#else> <#else>
<#-- Preparation Type not supported--> <#-- Preparation Type not supported-->
<#stop> <#stop>

View File

@ -26,11 +26,11 @@
<#include "RFXtoRP_HsrPro_ExecutionflowDetected.ftl"> <#include "RFXtoRP_HsrPro_ExecutionflowDetected.ftl">
} }
<#else> <#else>
<#-- no line list --> <#-- No line -->
<#stop> <#stop>
</#if> </#if>
<#else> <#else>
<#-- preparation order type not supported --> <#-- Preparation order type not supported -->
<#stop> <#stop>
</#if> </#if>
] ]
@ -42,6 +42,7 @@
<#assign preparation_order = JsonUtil.jsonToMap(dataRfx)> <#assign preparation_order = JsonUtil.jsonToMap(dataRfx)>
[ [
<#if preparation_order.preparation_type_code == "010" || preparation_order.preparation_type_code == "030" > <#if preparation_order.preparation_type_code == "010" || preparation_order.preparation_type_code == "030" >
<#if preparation_order.line_list??>
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
@ -49,6 +50,11 @@
<#include "RFXtoRP_HsrPro_ExecutionflowCancelled.ftl"> <#include "RFXtoRP_HsrPro_ExecutionflowCancelled.ftl">
} }
<#else> <#else>
<#-- No line -->
<#stop>
</#if>
<#else>
<#-- Preparation order type not supported -->
<#stop> <#stop>
</#if> </#if>
] ]