This commit is contained in:
Laurie MONTANT 2025-12-10 18:00:14 +01:00
parent b24fe76a81
commit e8551aa698
2 changed files with 36 additions and 24 deletions

View File

@ -32,18 +32,24 @@
"planned_carrier" : "ABAN", <#-- "${appointment.CarrierName?json_string}", --> "planned_carrier" : "ABAN", <#-- "${appointment.CarrierName?json_string}", -->
<#if appointment.Commissions??> <#if appointment.Commissions??>
"physical_receipt_list": [ <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
<#list eventRP.executionflowCustomFields.entrySet() as custom> "physical_receipt_list": [
{ <#list eventRP.executionflowCustomFields.entrySet() as custom>
"receipt_activity": "${custom.value.activity_code?json_string}", {
"originator_code": "${custom.value.originator_code?json_string}", "receipt_activity": "${custom.value.activity_code?json_string}",
"physical_receipt_reference": "${custom.value.reference?json_string}", "originator_code": "${custom.value.originator_code?json_string}",
"receipt_year": "${custom.value.order_year?json_string}", "physical_receipt_reference": "${custom.value.reference?json_string}",
"receipt_number": "${custom.value.order_number?json_string}" "receipt_year": "${custom.value.order_year?json_string}",
} "receipt_number": "${custom.value.order_number?json_string}"
<#sep>,</#sep> }
</#list> <#sep>,</#sep>
], </#list>
],
<#else>
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">
"appointment_designation":"LOADING",
</#if>
</#if>
</#if> </#if>
"constant_appointment": "false" "constant_appointment": "false"

View File

@ -9,18 +9,24 @@
"payload" : "payload" :
{ {
<#if appointment.Commissions??> <#if appointment.Commissions??>
"physical_receipt_list": [ <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
<#list eventRP.executionflowCustomFields.entrySet() as custom> "physical_receipt_list": [
{ <#list eventRP.executionflowCustomFields.entrySet() as custom>
"receipt_activity": "${custom.value.activity_code?json_string}", {
"originator_code": "${custom.value.originator_code?json_string}", "receipt_activity": "${custom.value.activity_code?json_string}",
"physical_receipt_reference": "${custom.value.reference?json_string}", "originator_code": "${custom.value.originator_code?json_string}",
"receipt_year": "${custom.value.order_year?json_string}", "physical_receipt_reference": "${custom.value.reference?json_string}",
"receipt_number": "${custom.value.order_number?json_string}" "receipt_year": "${custom.value.order_year?json_string}",
} "receipt_number": "${custom.value.order_number?json_string}"
<#sep>,</#sep> }
</#list> <#sep>,</#sep>
] </#list>
]
<#else>
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">
"appointment_designation":"LOADING"
</#if>
</#if>
</#if> </#if>
} }
} }