SCPN1-9437

(cherry picked from commit ae27efacf30349388d5d913cd11bceeed2b951e1)
This commit is contained in:
Laurie MONTANT 2025-10-13 14:25:08 +02:00 committed by Francis Reat
parent b29f28997a
commit 91916d9100
3 changed files with 5 additions and 8 deletions

View File

@ -18,15 +18,10 @@
<#assign item = JsonUtil.jsonToMap(dataRfx)> <#assign item = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#if item.logistical_variant_list?? && (item.logistical_variant_list?size == item.logistical_variant_list?filter(l ->l??)?size)>
<#assign apiReflexPlatformID = ApiReflexPlatformID.ItemCreated> <#assign apiReflexPlatformID = ApiReflexPlatformID.ItemCreated>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaItm_ItemCreated.ftl"> <#include "RFXtoRP_HsaItm_ItemCreated.ftl">
<#else>
<#-- "no LV for the item"-->
<#stop>
</#if>
} }
] ]
<#break> <#break>

View File

@ -21,15 +21,17 @@
}, },
<#-- Item metadata inclusion --> <#-- Item metadata inclusion -->
<#include "RFXtoRP_HsaItm_ItemCreated_ItemMetadata.ftl">, <#include "RFXtoRP_HsaItm_ItemCreated_ItemMetadata.ftl">
<#-- Item Photo URI could be added here --> <#-- Item Photo URI could be added here -->
<#if item.url?? && item.url!=""> <#if item.url?? && item.url!="">
,
"PhotoURI": "${item.url?json_string}", "PhotoURI": "${item.url?json_string}",
</#if> </#if>
<#-- Loop for the Logistical Variants - LV --> <#-- Loop for the Logistical Variants - LV -->
<#if item.logistical_variant_list??> <#if item.logistical_variant_list?? && (item.logistical_variant_list?size == item.logistical_variant_list?filter(l ->l??)?size)>
,
"LogisticVariants": [ "LogisticVariants": [
<#list item.logistical_variant_list as logistical_variant> <#list item.logistical_variant_list as logistical_variant>

View File

@ -39,7 +39,7 @@
"ActorID": "${RFXtoRPprefixDepot(preparation_order.optional_attributes.intermediate_consignee_transfer_physical_depot?json_string)}" "ActorID": "${RFXtoRPprefixDepot(preparation_order.optional_attributes.intermediate_consignee_transfer_physical_depot?json_string)}"
<#else> <#else>
<#if preparation_order.preparation_type_code == "030"> <#if preparation_order.preparation_type_code == "030">
"ActorID": "${RFXtoRPprefixDepot(preparation_order.end_consignee_code?json_string)}" "ActorID": "${RFXtoRPprefixConsignee(preparation_order.end_consignee_code?json_string)}"
<#else> <#else>
<#if preparation_order.address.address_type_code == "" && <#if preparation_order.address.address_type_code == "" &&
preparation_order.address.name_or_company_name == "" && preparation_order.address.name_or_company_name == "" &&