Prise en compte de l'API LVRemoved

This commit is contained in:
Laure Pascal 2023-09-05 15:05:31 +02:00
parent 8cdcafd70e
commit 0f6dcfb497
4 changed files with 9 additions and 20 deletions

View File

@ -18,38 +18,27 @@
<#assign lv = JsonUtil.jsonToMap(dataRfx)>
[
{
<#assign apiReflexPlatformID = ApiReflexPlatformID.LVUpdated>
<#assign apiReflexPlatformID = ApiReflexPlatformID.ItemLogisticVariantUpdated>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" :
<#include "RFXtoRP_HsaItmLv_LVUpdated.ftl">
<#include "RFXtoRP_HsaItmLv_LogisticVariantUpdated.ftl">
}
]
<#break>
<#case "D">
<#-- *********************************************** Action = DELETE ******************** -->
<#stop "LV deletion not supported" >
<#-- supression LV a décommenter quand API ajouté au connecteur
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign item = JsonUtil.jsonToMap(dataRfx)>
[
{
<#assign apiReflexPlatformID = ApiReflexPlatformID.LVDeleted>
<#assign apiReflexPlatformID = ApiReflexPlatformID.ItemLogisticVariantRemoved>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" :
<#include "RFXtoRP_HsaItmLv_LVRemoved.ftl">
<#include "RFXtoRP_HsaItmLv_LogisticVariantRemoved.ftl">
}
]
-->
<#break>
<#break>
<#default>
<#stop "event not supported">
</#switch>

View File

@ -24,7 +24,7 @@
</#if>
<#-- LV Metadata inclusion -->
<#include "RFXtoRP_HsaItmLv_LVUpdated_Metadata.ftl">
<#include "RFXtoRP_HsaItmLv_LogisticVariantUpdated_Metadata.ftl">
"IsBaseLogisticVariant": ${lv.base_lv},

View File

@ -1,4 +1,4 @@
<#-- use protobuf of class HsaItmLv to find Reflex Wms fields names -->
<#-- use protobuf of class HsaItmLv to find Reflex Wms fields names -->
"MetaData": [ ],