You've already forked reflex-wms-connector
SCPN1-10882
This commit is contained in:
@@ -441,6 +441,8 @@
|
|||||||
<#case "appointment_post_physical_receipt_associations_by_number">
|
<#case "appointment_post_physical_receipt_associations_by_number">
|
||||||
<#case "appointment_post_physical_receipt_dissociations_by_ref">
|
<#case "appointment_post_physical_receipt_dissociations_by_ref">
|
||||||
<#case "appointment_post_physical_receipt_dissociations_by_number">
|
<#case "appointment_post_physical_receipt_dissociations_by_number">
|
||||||
|
<#case "appointment_post_anticipated_receipt_associations_by_ref">
|
||||||
|
<#case "appointment_post_anticipated_receipt_dissociations_by_number">
|
||||||
<#switch restResponsetMsg.status!no_status>
|
<#switch restResponsetMsg.status!no_status>
|
||||||
<#case no_status>
|
<#case no_status>
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -37,45 +37,79 @@
|
|||||||
}
|
}
|
||||||
<#else>
|
<#else>
|
||||||
<#if eventRP.commissionsUpdated>
|
<#if eventRP.commissionsUpdated>
|
||||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.addedUnloadCommissions?? && eventRP.addedUnloadCommissions != "">
|
<#if appointment.executionflowCustomFields?has_content>
|
||||||
<#if eventRP.appointmentCustomFields?has_content>
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.addedUnloadCommissions?? && eventRP.addedUnloadCommissions != "">
|
||||||
{
|
<#if eventRP.appointmentCustomFields?has_content>
|
||||||
<#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">
|
||||||
</#if>
|
}
|
||||||
<#assign AddComma = true />
|
</#if>
|
||||||
</#if>
|
<#assign AddComma = true />
|
||||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.removedUnloadCommissions?? && eventRP.removedUnloadCommissions!="">
|
|
||||||
<#if AddComma == true>
|
|
||||||
,
|
|
||||||
</#if>
|
</#if>
|
||||||
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.removedUnloadCommissions?? && eventRP.removedUnloadCommissions!="">
|
||||||
|
<#if AddComma == true>
|
||||||
|
,
|
||||||
|
</#if>
|
||||||
|
|
||||||
<#if eventRP.appointmentCustomFields?has_content>
|
<#if eventRP.appointmentCustomFields?has_content>
|
||||||
{
|
{
|
||||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_number>
|
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_number>
|
||||||
"apiRestReflexID" : "${apiRestReflexID}",
|
"apiRestReflexID" : "${apiRestReflexID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl">
|
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl">
|
||||||
}
|
}
|
||||||
<#else>
|
<#else>
|
||||||
{
|
{
|
||||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_ref>
|
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_ref>
|
||||||
"apiRestReflexID" : "${apiRestReflexID}",
|
"apiRestReflexID" : "${apiRestReflexID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl">
|
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl">
|
||||||
}
|
}
|
||||||
|
</#if>
|
||||||
|
<#assign AddComma = true />
|
||||||
|
</#if>
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
<#if appointment.orderCustomFields?has_content>
|
||||||
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.addedUnloadCommissions?? && eventRP.addedUnloadCommissions != "">
|
||||||
|
<#if AddComma == true>
|
||||||
|
,
|
||||||
|
</#if>
|
||||||
|
<#if eventRP.appointmentCustomFields?has_content>
|
||||||
|
{
|
||||||
|
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_anticipated_receipt_associations_by_number>
|
||||||
|
"apiRestReflexID" : "${apiRestReflexID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RPtoRFX_CarrierAppointmentAnticipatedReceiptAssociationByNumber.ftl">
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
|
<#assign AddComma = true />
|
||||||
|
</#if>
|
||||||
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.removedUnloadCommissions?? && eventRP.removedUnloadCommissions!="">
|
||||||
|
<#if AddComma == true>
|
||||||
|
,
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
<#if eventRP.appointmentCustomFields?has_content>
|
||||||
|
{
|
||||||
|
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_anticipated_receipt_dissociations_by_number>
|
||||||
|
"apiRestReflexID" : "${apiRestReflexID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RPtoRFX_CarrierAppointmentAnticipatedReceiptDissociationByNumber.ftl">
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
|
<#assign AddComma = true />
|
||||||
</#if>
|
</#if>
|
||||||
<#assign AddComma = true />
|
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#-- *********************************************** Action = reasonUpdated or slotUpdated ******************** -->
|
<#-- *********************************************** Action = reasonUpdated or slotUpdated ******************** -->
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"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_associations",
|
||||||
|
"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 addedCommissions = eventRP.addedUnloadCommissions />
|
||||||
|
<#else>
|
||||||
|
<#assign addedCommissions = eventRP.addedLoadCommissions />
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
"anticipated_receipt_list": [
|
||||||
|
<#list addedCommissions?filter(l -> l.OrderID??) as addedCommission>
|
||||||
|
{
|
||||||
|
"activity": "${orderCustomFields[addedCommission.OrderID].activity_code?json_string}",
|
||||||
|
"originator_code": "${orderCustomFields[addedCommission.OrderID].originator_code?json_string}",
|
||||||
|
"anticipated_receipt_reference": "${orderCustomFields[addedCommission.OrderID].anticipated_receipt_reference?json_string}",
|
||||||
|
"anticipated_receipt_year": "${orderCustomFields[addedCommission.OrderID].anticipated_receipt_year?json_string}",
|
||||||
|
"anticipated_receipt_number": "${orderCustomFields[addedCommission.OrderID].anticipated_receipt_number?json_string}"
|
||||||
|
}
|
||||||
|
<#sep>,</#sep>
|
||||||
|
</#list>
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"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>
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user