This commit is contained in:
Laurie MONTANT 2025-12-22 11:30:31 +01:00
parent 420d1cd0ef
commit 82c4aea28e
2 changed files with 16 additions and 14 deletions

View File

@ -28,19 +28,21 @@
<#assign appointment = eventRP.data /> <#assign appointment = eventRP.data />
[ [
<#if eventRP.appointmentCustomFields?has_content> <#if eventRP.appointmentCustomFields?has_content>
{ <#list eventRP.executionflowCustomFields as commission>
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number> {
"apiRestReflexID" : "${apiRestReflexID}", <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number>
"datas" : "apiRestReflexID" : "${apiRestReflexID}",
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl"> "datas" :
} <#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl">
<#else> }
{ <#else>
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_ref> {
"apiRestReflexID" : "${apiRestReflexID}", <#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_ref>
"datas" : "apiRestReflexID" : "${apiRestReflexID}",
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl"> "datas" :
} <#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl">
}
</#list>
</#if> </#if>
] ]
<#break> <#break>

View File

@ -12,7 +12,7 @@
<#if appointment.Commissions??> <#if appointment.Commissions??>
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING"> <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
"physical_receipt_list": [ "physical_receipt_list": [
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.value?? && l.value?has_content) as custom> <#list commission.entrySet()?filter(l ->l.value?? && l.value?has_content) as custom>
{ {
"receipt_activity": "${custom.value.activity_code?json_string}", "receipt_activity": "${custom.value.activity_code?json_string}",
"originator_code": "${custom.value.originator_code?json_string}", "originator_code": "${custom.value.originator_code?json_string}",