correction syntaxe ftl

This commit is contained in:
Francis REAT 2023-10-18 16:05:07 +02:00
parent 202804ad66
commit 6fd0e7e2e4
6 changed files with 10 additions and 9 deletions

View File

@ -7,8 +7,9 @@
<#assign projectRP = project>
<#assign organisationRP = organisation>
#-- initialisation map for SegmentationKey and MetaData -->
<#assign Header_MetaData_Map {} />
<#assign SegmentationKeys_Map {} />
<#switch eventRP.event>
<#case "Created">

View File

@ -53,9 +53,9 @@
<#if line.MetaData??>
<#assign Line_MetaData_Map = JsonUtil.sequenceToMap(line.MetaData, "Key", "Value") />
</#if>
<#if line.RequestedContent.Goods.SegmentationKeys??>
<#assign SegmentationKeys_Map = JsonUtil.sequenceToMap(line.RequestedContent.Goods.SegmentationKeys, "Key", "Value") />
</#if>
<#include "RPtoRFX_PrepOrder_DefaultLineData.ftl">
{
"originator_reference_line_number": ${line.LineID?number},

View File

@ -2,7 +2,7 @@
<#-- How to use MD Header map
Example :
<#assign pick_sequence_code = Header_MetaData_Map['OrderType']/>
<#assign pick_sequence_code = Header_MetaData_Map["OrderType"]!""/>
-->

View File

@ -3,10 +3,10 @@
<#-- How to use MD or SK map
Example :
<#assign owner_code_to_prepare = SegmentationKeys_Map['Owner']/>
<#assign owner_code_to_prepare = SegmentationKeys_Map["Owner"]!""/>
-->
<#assign owner_code_to_prepare = SegmentationKeys_Map['myOwner']/>
<#assign owner_code_to_prepare = SegmentationKeys_Map["myOwner"]!""/>
<#assign grade_code_to_prepare =""/>
<#assign batch_1 =""/>

View File

@ -2,7 +2,7 @@
<#-- How to use MD Header map
Example :
<#assign receipt_type = Header_MetaData_Map['OrderType']/>
<#assign receipt_type = Header_MetaData_Map["OrderType"]!""/>
-->
<#assign activity_code = "PEN"/>

View File

@ -3,7 +3,7 @@
<#-- How to use MD or SK map
Example :
<#assign owner_code = SegmentationKeys_Map['Owner']/>
<#assign owner_code = SegmentationKeys_Map["Owner"]!""/>
-->