From f5c8640d11f044a4ed27b002275435effb405df9 Mon Sep 17 00:00:00 2001 From: Francis Reat Date: Fri, 9 Jan 2026 15:37:25 +0100 Subject: [PATCH] The loading and unloading appointment is not yet managed. (cherry picked from commit 7e57d91cb63c44699f3e2f60298bb8d75a283f4d) --- RFXtoRP_HsrCarrierApt.ftl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/RFXtoRP_HsrCarrierApt.ftl b/RFXtoRP_HsrCarrierApt.ftl index df68af9..33f75dc 100644 --- a/RFXtoRP_HsrCarrierApt.ftl +++ b/RFXtoRP_HsrCarrierApt.ftl @@ -1,5 +1,5 @@ <#-- **** input parameters ***** --> -<#-- input : message RFX --> +<#-- input : message HARDIS-WMS --> <#-- project : projectId in ReflexPlatform --> <#-- organisation : organisationtId in ReflexPlatform --> <#include "ActorPrefix.ftl"> @@ -12,11 +12,16 @@ <#assign aDateTime = .now> +<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> +<#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)> + +<#if (carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true")> + <#stop "The loading and unloading appointment is not yet managed." > + + <#switch cloudEventMsg.action> <#case "C"> <#-- *********************************************** Action = CREATE or UPDATE ******************** --> - <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> - <#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)> [ { <#assign apiReflexPlatformID = ApiReflexPlatformID.SiteForceBookAppointment> @@ -39,8 +44,6 @@ <#break> <#case "U"> <#-- *********************************************** Action = Update ********************--> - <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> - <#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)> [ { <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentCustomFieldsUpdated> @@ -149,8 +152,6 @@ <#break> <#case "D"> <#-- *********************************************** Action = Delete ******************** --> - <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> - <#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)> [ <#-- Ajout des lignes--> {