This commit is contained in:
Laurie MONTANT 2025-12-15 16:16:19 +01:00
parent cd7f2ecb22
commit 34133aabec
2 changed files with 1 additions and 10 deletions

View File

@ -8,17 +8,13 @@
"payload" : "payload" :
{ {
"appointment_reference": "${eventRP.refid?json_string}", "appointment_reference": "${eventRP.refid?json_string}",
<#switch appointment.AppointmentType> <#switch appointment.AppointmentType>
<#case "APPOINTMENT_TYPE_LOADING"> <#case "APPOINTMENT_TYPE_LOADING">
"unloading_appointment" : "false", "unloading_appointment" : "false",
"load_appointment" : "true", "load_appointment" : "true",
"planned_load_start_datetime" : "${DateTimeUTCtoRfxLocale(appointment.Slot.StartDateTime,time_zone_rfx)}", "planned_load_start_datetime" : "${DateTimeUTCtoRfxLocale(appointment.Slot.StartDateTime,time_zone_rfx)}",
"planned_load_end_datetime": "${AddSecondsToDatetime(appointment.Slot.StartDateTime?datetime.iso,appointment.Slot.DurationInSeconds?number)?iso_nz(time_zone_rfx)}", "planned_load_end_datetime": "${AddSecondsToDatetime(appointment.Slot.StartDateTime?datetime.iso,appointment.Slot.DurationInSeconds?number)?iso_nz(time_zone_rfx)}",
<#break> <#break>
<#case "APPOINTMENT_TYPE_UNLOADING"> <#case "APPOINTMENT_TYPE_UNLOADING">
"unloading_appointment" : "true", "unloading_appointment" : "true",
"load_appointment" : "false", "load_appointment" : "false",
@ -28,9 +24,7 @@
<#default> <#default>
<#stop "appointment.AppointmentType not implemented" > <#stop "appointment.AppointmentType not implemented" >
</#switch> </#switch>
<#include "RPtoRFX_CarrierAppointmentDefaultData.ftl">
"planned_carrier" : "ABAN", <#-- "${appointment.CarrierName?json_string}", -->
<#if appointment.Commissions??> <#if appointment.Commissions??>
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING"> <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
<#if appointment.Commissions.OrderID ?? && appointment.Commissions.OrderID!=""> <#if appointment.Commissions.OrderID ?? && appointment.Commissions.OrderID!="">
@ -59,10 +53,7 @@
</#if> </#if>
</#if> </#if>
</#if> </#if>
</#if> </#if>
"constant_appointment": "false" "constant_appointment": "false"
} }
} }