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

View File

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