From 844ecb1558db8a0e9a0d9d110652ea6a374424ae Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Thu, 23 Apr 2026 18:33:12 +0200 Subject: [PATCH 1/3] back SCPN1-10519 --- RFXtoRP_HsrCarrierApt.ftl | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/RFXtoRP_HsrCarrierApt.ftl b/RFXtoRP_HsrCarrierApt.ftl index bcfb8b2..3f273a5 100644 --- a/RFXtoRP_HsrCarrierApt.ftl +++ b/RFXtoRP_HsrCarrierApt.ftl @@ -36,34 +36,6 @@ <#break> <#case "U"> <#-- *********************************************** Action = Update ********************--> - <#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true"> - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - <#assign ID = "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}" /> - <#else> - <#assign ID = "${carrier_apt.year_number}-${carrier_apt.appointment_number}" /> - - <#else> - <#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!=""> - <#assign ID = "${carrier_apt.appointment_reference?json_string}" /> - <#else> - <#assign ID = "${carrier_apt.year_number}-${carrier_apt.appointment_number}" /> - - - <#assign payload = '{"Header": {"ProjectID": "${projectRP}:${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}"},"IDs": [{"RefID": "${ID}"}],"Options": {"Only": ["ID.RefID","Payload.WMSCreated"]}}'/> - <#assign queryApiReflexPlatformID = QueryApiReflexPlatformID.AppointmentGetByIds> - <#assign response = QueryApiReflexPlatformCall.call(queryApiReflexPlatformID,payload) /> - <#assign appointmentRP = JsonUtil.jsonToMap(response)> - - <#if !appointmentRP?? || !appointmentRP.Objects?? || !appointmentRP.Objects[0]?? || !appointmentRP.Objects[0].ID.RefID?? || !appointmentRP.Objects[0].Payload?? || !appointmentRP.Objects[0].Payload.WMSCreated?? || !appointmentRP.Objects[0].Payload.WMSCreated> - [ - { - <#assign apiReflexPlatformID = ApiReflexPlatformID.BookingForceBookAppointment> - "apiReflexPlatformID" : "${apiReflexPlatformID}", - "datas" : - <#include "RFXtoRP_HsrCarrierApt_BookingForceBookAppointment.ftl"> - } - ] - <#else> [ { <#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentCustomFieldsUpdated> @@ -165,7 +137,6 @@ ] - <#break> <#case "D"> <#-- *********************************************** Action = Delete ******************** --> From 2b25c4853d2934424376ab38326d9daad777999b Mon Sep 17 00:00:00 2001 From: Francis Reat Date: Fri, 24 Apr 2026 09:41:03 +0200 Subject: [PATCH 2/3] back SCPN1 10519 --- ...CarrierApt_BookingForceBookAppointment.ftl | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/RFXtoRP_HsrCarrierApt_BookingForceBookAppointment.ftl b/RFXtoRP_HsrCarrierApt_BookingForceBookAppointment.ftl index d2b0ba7..b45dee9 100644 --- a/RFXtoRP_HsrCarrierApt_BookingForceBookAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_BookingForceBookAppointment.ftl @@ -61,8 +61,12 @@ <#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_UNLOADING> <#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_unloading_start_datetime?datetime.iso,carrier_apt.planned_unloading_end_datetime?datetime.iso) /> - <#if (duration <= 0)> + <#if (duration < 0)> <#stop "planned_unloading_start_datetime or planned_unloading_end_datetime field of appointmend are not valid" > + <#else> + <#if (duration == 0)> + <#assign duration = 1 /> + <#else> <#if carrier_apt.unloading_appointment == "false" && carrier_apt.load_appointment == "true" > @@ -71,8 +75,12 @@ <#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_LOADING> <#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_load_start_datetime?datetime.iso,carrier_apt.planned_load_end_datetime?datetime.iso) /> - <#if (duration <= 0)> - <#stop "planned_unloading_start_datetime or planned_unloading_end_datetime field of appointmend are not valid" > + <#if (duration < 0)> + <#stop "planned_load_start_datetime or planned_load_end_datetime field of appointmend are not valid" > + <#else> + <#if (duration == 0)> + <#assign duration = 1 /> + <#else> <#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true"> @@ -81,8 +89,12 @@ <#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_UNLOADING> <#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_unloading_start_datetime?datetime.iso,carrier_apt.planned_load_end_datetime?datetime.iso) /> - <#if (duration <= 0)> + <#if (duration < 0)> <#stop "planned_unloading_start_datetime or planned_load_end_datetime field of appointmend are not valid" > + <#else> + <#if (duration == 0)> + <#assign duration = 1 /> + <#else> <#stop "Appointment type not supported" > From ac182993451576ca91fb945fe464b9d6dc62511e Mon Sep 17 00:00:00 2001 From: Francis Reat Date: Fri, 24 Apr 2026 11:13:27 +0200 Subject: [PATCH 3/3] Release 2.0.22+2 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index afb75ba..c3448aa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.22+1 +2.0.22+2