The loading and unloading appointment is not yet managed.

(cherry picked from commit 7e57d91cb63c44699f3e2f60298bb8d75a283f4d)
This commit is contained in:
Francis REAT 2026-01-09 15:37:25 +01:00
parent a6fec0c333
commit f5c8640d11

View File

@ -1,5 +1,5 @@
<#-- **** input parameters ***** --> <#-- **** input parameters ***** -->
<#-- input : message RFX --> <#-- input : message HARDIS-WMS -->
<#-- project : projectId in ReflexPlatform --> <#-- project : projectId in ReflexPlatform -->
<#-- organisation : organisationtId in ReflexPlatform --> <#-- organisation : organisationtId in ReflexPlatform -->
<#include "ActorPrefix.ftl"> <#include "ActorPrefix.ftl">
@ -12,11 +12,16 @@
<#assign aDateTime = .now> <#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." >
</#if>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.SiteForceBookAppointment> <#assign apiReflexPlatformID = ApiReflexPlatformID.SiteForceBookAppointment>
@ -39,8 +44,6 @@
<#break> <#break>
<#case "U"> <#case "U">
<#-- *********************************************** Action = Update ********************--> <#-- *********************************************** Action = Update ********************-->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentCustomFieldsUpdated> <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentCustomFieldsUpdated>
@ -149,8 +152,6 @@
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = Delete ******************** --> <#-- *********************************************** Action = Delete ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign carrier_apt = JsonUtil.jsonToMap(dataRfx)>
[ [
<#-- Ajout des lignes--> <#-- Ajout des lignes-->
{ {