RDV
This commit is contained in:
parent
955928a754
commit
706c73a530
@ -26,25 +26,45 @@
|
||||
<#-- *********************************************** Action = CommissionsUpdated ******************** -->
|
||||
<#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>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl">
|
||||
}
|
||||
[ <#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#if eventRP.addedCommissions?? && eventRP.addedCommissions!="">
|
||||
<#if eventRP.appointmentCustomFields?has_content>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByNumber.ftl">
|
||||
}
|
||||
<#else>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_ref>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl">
|
||||
}
|
||||
</#if>
|
||||
<#else>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_ref>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl">
|
||||
}
|
||||
<#if eventRP.removedCommissions?? && eventRP.removedCommissions!="">
|
||||
<#if eventRP.appointmentCustomFields?has_content>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_number>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl">
|
||||
}
|
||||
<#else>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_ref>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl">
|
||||
}
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
<#else>
|
||||
<#stop "Unsupported Appointment Type for Commissions Update">
|
||||
</#if>
|
||||
<#sep>,</#sep>
|
||||
</#list>
|
||||
]
|
||||
<#break>
|
||||
<#-- *********************************************** Action = SlotUpdated ******************** -->
|
||||
|
||||
@ -9,22 +9,18 @@
|
||||
},
|
||||
"payload" :
|
||||
{
|
||||
<#if appointment.Commissions??>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#list eventRP.addedCommissions as addedCommission>
|
||||
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.value?? && l.value?has_content) as CustomFields>
|
||||
|
||||
"physical_receipt_list": [
|
||||
{
|
||||
"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}"
|
||||
"receipt_activity": "${CustomFields.value.activity_code?json_string}",
|
||||
"originator_code": "${CustomFields.value.originator_code?json_string}",
|
||||
"physical_receipt_reference": "${CustomFields.value.reference?json_string}",
|
||||
"receipt_year": "${CustomFields.value.order_year?json_string}",
|
||||
"receipt_number": "${CustomFields.value.order_number?json_string}"
|
||||
}
|
||||
]
|
||||
<#else>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">
|
||||
"appointment_designation":"${appointment.Reason!""?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
},
|
||||
"payload" :
|
||||
{
|
||||
<#if appointment.Commissions??>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#list eventRP.addedCommissions as addedCommission>
|
||||
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.value?? && l.value?has_content) as CustomFields>
|
||||
"physical_receipt_list": [
|
||||
{
|
||||
"receipt_activity": "${commission.value.activity_code?json_string}",
|
||||
@ -19,11 +19,5 @@
|
||||
"receipt_number": "${commission.value.order_number?json_string}"
|
||||
}
|
||||
]
|
||||
<#else>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">
|
||||
"appointment_designation":"${appointment.Reason!""?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
{
|
||||
"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}/physical_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" :
|
||||
{
|
||||
<#if appointment.Commissions??>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
"physical_receipt_list": [
|
||||
{
|
||||
"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}"
|
||||
}
|
||||
]
|
||||
<#else>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">
|
||||
"appointment_designation":"${appointment.Reason!""?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
{
|
||||
"id" : {"refid" : "${eventRP.refid?json_string}","actorID":"${RPtoRFXprefixDepot(eventRP.actor)}"},
|
||||
"route" : "rest/public/v1/physical_depots/{physical_depot_code}/carrier_appointments/{appointment_reference}/physical_receipt_dissociations",
|
||||
"method" : "POST",
|
||||
"uri_substitutions": {
|
||||
"physical_depot_code": "${RPtoRFXprefixDepot(eventRP.actor)}",
|
||||
"appointment_reference":"${eventRP.refid?json_string}"
|
||||
},
|
||||
"payload" :
|
||||
{
|
||||
<#if appointment.Commissions??>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
"physical_receipt_list": [
|
||||
{
|
||||
"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}"
|
||||
}
|
||||
]
|
||||
<#else>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">
|
||||
"appointment_designation":"${appointment.Reason!""?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user