You've already forked reflex-wms-connector
33 lines
1.5 KiB
Java
33 lines
1.5 KiB
Java
{
|
|
"id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"},
|
|
"route" : "rest/public/v1/physical_depots/{physical_depot_code}/appointment_years/{appointment_year}/appointment_numbers/{appointment_number}/anticipated_receipt_dissociations",
|
|
"method" : "POST",
|
|
"uri_substitutions": {
|
|
"physical_depot_code": "${RPtoRFXprefixDepot(eventRP.actor)}",
|
|
"appointment_year":"${eventRP.appointmentCustomFields.year?json_string}",
|
|
"appointment_number":"${eventRP.appointmentCustomFields.number?json_string}"
|
|
},
|
|
"payload" :
|
|
{
|
|
<#assign orderCustomFields = eventRP.orderCustomFields >
|
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
|
<#assign removedCommissions = eventRP.removedUnloadCommissions />
|
|
<#else>
|
|
<#assign removedCommissions = eventRP.removedLoadCommissions />
|
|
</#if>
|
|
|
|
"anticipated_receipt_list": [
|
|
<#list removedCommissions?filter(l -> l.OrderID??) as removedCommission>
|
|
{
|
|
"activity": "${orderCustomFields[removedCommission.OrderID].activity_code?json_string}",
|
|
"originator_code": "${orderCustomFields[removedCommission.OrderID].originator_code?json_string}",
|
|
"anticipated_receipt_reference": "${orderCustomFields[removedCommission.OrderID].anticipated_receipt_reference?json_string}",
|
|
"anticipated_receipt_year": "${orderCustomFields[removedCommission.OrderID].anticipated_receipt_year?json_string}",
|
|
"anticipated_receipt_number": "${orderCustomFields[removedCommission.OrderID].anticipated_receipt_number?json_string}"
|
|
}
|
|
<#sep>,</#sep>
|
|
</#list>
|
|
]
|
|
}
|
|
}
|