This commit is contained in:
Laurie MONTANT 2025-12-23 08:42:42 +01:00
parent 9bf87976ea
commit 2c5df0ae88
3 changed files with 26 additions and 29 deletions

View File

@ -27,6 +27,7 @@
<#case "CommissionsUpdated">
<#assign appointment = eventRP.data />
[
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.value?? && l.value?has_content) as commission>
<#if eventRP.appointmentCustomFields?has_content>
{
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number>
@ -42,6 +43,8 @@
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl">
}
</#if>
<#sep>,</#sep>
</#list>
]
<#break>
<#-- *********************************************** Action = SlotUpdated ******************** -->

View File

@ -12,16 +12,13 @@
<#if appointment.Commissions??>
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
"physical_receipt_list": [
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.value?? && l.value?has_content) as custom>
{
"receipt_activity": "${custom.value.activity_code?json_string}",
"originator_code": "${custom.value.originator_code?json_string}",
"physical_receipt_reference": "${custom.value.reference?json_string}",
"receipt_year": "${custom.value.order_year?json_string}",
"receipt_number": "${custom.value.order_number?json_string}"
"receipt_activity": "${commission.value.activity_code?json_string}",
"originator_code": "${commission.value.originator_code?json_string}",
"physical_receipt_reference": "${commission.value.reference?json_string}",
"receipt_year": "${commission.value.order_year?json_string}",
"receipt_number": "${commission.value.order_number?json_string}"
}
<#sep>,</#sep>
</#list>
]
<#else>
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">

View File

@ -11,16 +11,13 @@
<#if appointment.Commissions??>
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
"physical_receipt_list": [
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.value?? && l.value?has_content) as custom>
{
"receipt_activity": "${custom.value.activity_code?json_string}",
"originator_code": "${custom.value.originator_code?json_string}",
"physical_receipt_reference": "${custom.value.reference?json_string}",
"receipt_year": "${custom.value.order_year?json_string}",
"receipt_number": "${custom.value.order_number?json_string}"
"receipt_activity": "${commission.value.activity_code?json_string}",
"originator_code": "${commission.value.originator_code?json_string}",
"physical_receipt_reference": "${commission.value.reference?json_string}",
"receipt_year": "${commission.value.order_year?json_string}",
"receipt_number": "${commission.value.order_number?json_string}"
}
<#sep>,</#sep>
</#list>
]
<#else>
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">