SCPN1-10100

This commit is contained in:
2026-01-30 16:14:40 +01:00
parent 3b36b44aea
commit 99357483f9
13 changed files with 221 additions and 50 deletions

View File

@@ -27,7 +27,7 @@
<#case "CommissionsUpdated">
<#assign appointment = eventRP.data />
[ <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
<#if eventRP.addedCommissions?? && eventRP.addedCommissions!="">
<#if eventRP.addedCommissions?? && eventRP.addedCommissions!="">
<#if eventRP.appointmentCustomFields?has_content>
{
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number>
@@ -47,7 +47,7 @@
<#if eventRP.removedCommissions?? && eventRP.removedCommissions!="">
<#if eventRP.addedCommissions?? && eventRP.addedCommissions!="">
,
</#if>
</#if>
<#if eventRP.appointmentCustomFields?has_content>
{
@@ -66,12 +66,28 @@
</#if>
</#if>
<#else>
<#stop "Unsupported Appointment Type for Commissions Update">
<#if eventRP.appointmentCustomFields?has_content>
{
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_number>
"apiRestReflexID" : "${apiRestReflexID}",
"datas" :
<#include "RPtoRFX_CarrierAppointmentReasonUpdatedByNumber.ftl">
}
<#else>
{
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_ref>
"apiRestReflexID" : "${apiRestReflexID}",
"datas" :
<#include "RPtoRFX_CarrierAppointmentReasonUpdatedByRef.ftl">
}
</#if>
</#if>
]
<#break>
<#-- *********************************************** Action = SlotUpdated ******************** -->
<#-- *********************************************** Action = SlotUpdated or CarrierInformationUpdated ******************** -->
<#case "SlotUpdated">
<#case "CarrierInformationUpdated">
<#case "ReasonUpdated">
<#assign appointment = eventRP.data />
[
<#if eventRP.appointmentCustomFields?has_content>
@@ -79,14 +95,14 @@
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_number>
"apiRestReflexID" : "${apiRestReflexID}",
"datas" :
<#include "RPtoRFX_CarrierAppointmentSlotUpdatedByNumber.ftl">
<#include "RPtoRFX_CarrierAppointmentSlotOrCarrierInformationUpdatedByNumber.ftl">
}
<#else>
{
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_ref>
"apiRestReflexID" : "${apiRestReflexID}",
"datas" :
<#include "RPtoRFX_CarrierAppointmentSlotUpdatedByRef.ftl">
<#include "RPtoRFX_CarrierAppointmentSlotOrCarrierInformationUpdatedByRef.ftl">
}
</#if>
]