You've already forked reflex-wms-connector
SCPN1-10402
This commit is contained in:
@@ -28,7 +28,11 @@
|
||||
<#assign AddComma = false />
|
||||
<#assign appointment = eventRP.data />
|
||||
[
|
||||
<<<<<<< HEAD
|
||||
<#if appointment?? && (!(appointment.WMSCreated??) || !appointment.WMSCreated) && appointment.Status?? && appointment.Status.Current?? && appointment.Status.Current.StatusCode?? && appointment.Status.Current.StatusCode == AppointmentStatusCode.APPOINTMENT_0150_ALLOCATION_ERROR>
|
||||
=======
|
||||
<#if appointment?? && appointment.Status?? && appointment.Status.Current?? && appointment.Status.Current.StatusCode?? && appointment.Status.Current.StatusCode == AppointmentStatusCode.APPOINTMENT_0150_ALLOCATION_ERROR>
|
||||
>>>>>>> f602f74 (SCPN1-10471)
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_create>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
@@ -54,6 +58,7 @@
|
||||
}
|
||||
</#if>
|
||||
<#assign AddComma = true />
|
||||
<<<<<<< HEAD
|
||||
</#if>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING" && eventRP.removedUnloadCommissions?? && eventRP.removedUnloadCommissions!="">
|
||||
<#if AddComma == true>
|
||||
@@ -97,54 +102,55 @@
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl">
|
||||
}
|
||||
=======
|
||||
>>>>>>> f602f74 (SCPN1-10471)
|
||||
</#if>
|
||||
<#assign AddComma = true />
|
||||
</#if>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING" && eventRP.removedUnloadCommissions?? && eventRP.removedUnloadCommissions!="">
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING" && eventRP.removedUnloadCommissions?? && eventRP.removedUnloadCommissions!="">
|
||||
<#if AddComma == true>
|
||||
,
|
||||
</#if>
|
||||
|
||||
<#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>
|
||||
<#assign AddComma = true />
|
||||
</#if>
|
||||
</#if>
|
||||
<#-- *********************************************** Action = reasonUpdated or slotUpdated ******************** -->
|
||||
<#if eventRP.reasonUpdated || eventRP.slotUpdated || eventRP.carrierInformationUpdated>
|
||||
<#if AddComma == true>
|
||||
,
|
||||
</#if>
|
||||
|
||||
<#if eventRP.appointmentCustomFields?has_content>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_number>
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_number>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByNumber.ftl">
|
||||
<#include "RPtoRFX_CarrierAppointmentSlotOrCarrierInformationUpdatedByNumber.ftl">
|
||||
}
|
||||
<#else>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_dissociations_by_ref>
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_ref>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptDissociationByRef.ftl">
|
||||
<#include "RPtoRFX_CarrierAppointmentSlotOrCarrierInformationUpdatedByRef.ftl">
|
||||
}
|
||||
</#if>
|
||||
<#assign AddComma = true />
|
||||
</#if>
|
||||
</#if>
|
||||
<#-- *********************************************** Action = reasonUpdated or slotUpdated ******************** -->
|
||||
<#if eventRP.reasonUpdated || eventRP.slotUpdated || eventRP.carrierInformationUpdated>
|
||||
<#if AddComma == true>
|
||||
,
|
||||
</#if>
|
||||
<#if eventRP.appointmentCustomFields?has_content>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_number>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentSlotOrCarrierInformationUpdatedByNumber.ftl">
|
||||
}
|
||||
<#else>
|
||||
{
|
||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_put_update_by_ref>
|
||||
"apiRestReflexID" : "${apiRestReflexID}",
|
||||
"datas" :
|
||||
<#include "RPtoRFX_CarrierAppointmentSlotOrCarrierInformationUpdatedByRef.ftl">
|
||||
}
|
||||
</#if>
|
||||
<#assign AddComma = true />
|
||||
</#if>
|
||||
</#if>
|
||||
]
|
||||
<#break>
|
||||
<#-- *********************************************** Action = SlotUpdated ******************** -->
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{
|
||||
"appointment_reference": "${eventRP.refid?json_string}",
|
||||
<#switch appointment.AppointmentType>
|
||||
<#case "APPOINTMENT_TYPE_LOADING">
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_LOADING>
|
||||
"unloading_appointment" : "false",
|
||||
"load_appointment" : "true",
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
@@ -20,7 +20,7 @@
|
||||
"planned_load_end_datetime": "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,time_zone_rfx),time_zone_rfx)}",
|
||||
</#if>
|
||||
<#break>
|
||||
<#case "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
"unloading_appointment" : "true",
|
||||
"load_appointment" : "false",
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
@@ -35,30 +35,29 @@
|
||||
<#stop "appointment.AppointmentType not implemented" >
|
||||
</#switch>
|
||||
<#include "RPtoRFX_CarrierAppointmentDefaultData.ftl">
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING" >
|
||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING >
|
||||
<#if appointment.Unloading?? && appointment.Unloading.Projects?? && appointment.Unloading.Projects[0]?? &&
|
||||
appointment.Unloading.Projects[0].Commissions?? &&
|
||||
appointment.Unloading.Projects[0].Commissions[0]?? &&
|
||||
appointment.Unloading.Projects[0].Commissions[0].OrderID?? &&
|
||||
appointment.Unloading.Projects[0].Commissions[0].OrderID != "">
|
||||
appointment.Unloading.Projects[0].Commissions[0]??>
|
||||
"physical_receipt_list": [
|
||||
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.value?? && l.value?has_content) as custom>
|
||||
{
|
||||
"receipt_activity": "${custom.value.activity_code?json_string}",
|
||||
"originator_code": "${custom.value.originator_code?json_string}",
|
||||
"physical_receipt_reference": "${custom.value.reference?json_string}",
|
||||
"receipt_year": "${custom.value.order_year?json_string}",
|
||||
"receipt_number": "${custom.value.order_number?json_string}"
|
||||
|
||||
}
|
||||
<#sep>,</#sep>
|
||||
</#list>
|
||||
<#list appointment.Unloading.Projects[0].Commissions?filter(l ->l.ExecutionflowID?? && l.ExecutionflowID !="") as commission>
|
||||
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.key == commission.ExecutionflowID && l.value?? && l.value?has_content) as custom>
|
||||
{
|
||||
"receipt_activity": "${custom.value.activity_code?json_string}",
|
||||
"originator_code": "${custom.value.originator_code?json_string}",
|
||||
"physical_receipt_reference": "${custom.value.reference?json_string}",
|
||||
"receipt_year": "${custom.value.order_year?json_string}",
|
||||
"receipt_number": "${custom.value.order_number?json_string}"
|
||||
}
|
||||
<#sep>,</#sep>
|
||||
</#list>
|
||||
</#list>
|
||||
],
|
||||
<#else>
|
||||
"appointment_designation":"${(appointment.Reason!"")!?json_string}",
|
||||
</#if>
|
||||
<#else>
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_LOADING">
|
||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_LOADING>
|
||||
"appointment_designation":"${(appointment.Reason!"")?json_string}",
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"payload" :
|
||||
{
|
||||
<#assign executionflowCustomFields = eventRP.executionflowCustomFields >
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
<#assign addedCommissions = eventRP.addedUnloadCommissions />
|
||||
<#else>
|
||||
<#assign addedCommissions = eventRP.addedLoadCommissions />
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"payload" :
|
||||
{
|
||||
<#assign executionflowCustomFields = eventRP.executionflowCustomFields >
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
<#assign addedCommissions = eventRP.addedUnloadCommissions />
|
||||
<#else>
|
||||
<#assign addedCommissions = eventRP.addedLoadCommissions />
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"payload" :
|
||||
{
|
||||
<#assign executionflowCustomFields = eventRP.executionflowCustomFields >
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
<#assign removedCommissions = eventRP.removedUnloadCommissions />
|
||||
<#else>
|
||||
<#assign removedCommissions = eventRP.removedLoadCommissions />
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"payload" :
|
||||
{
|
||||
<#assign executionflowCustomFields = eventRP.executionflowCustomFields >
|
||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
<#assign removedCommissions = eventRP.removedUnloadCommissions />
|
||||
<#else>
|
||||
<#assign removedCommissions = eventRP.removedLoadCommissions />
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"unloading_appointment" : "${eventRP.appointmentCustomFields.unloading?json_string}",
|
||||
"load_appointment" : "${eventRP.appointmentCustomFields.loading?json_string}",
|
||||
<#switch appointment.AppointmentType>
|
||||
<#case "APPOINTMENT_TYPE_LOADING">
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_LOADING>
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
"planned_load_start_datetime" : "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.StartDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
"planned_load_end_datetime": "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
@@ -21,7 +21,7 @@
|
||||
"planned_load_end_datetime": "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,time_zone_rfx),time_zone_rfx)}",
|
||||
</#if>
|
||||
<#break>
|
||||
<#case "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
"planned_unloading_start_datetime":"${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.StartDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
"planned_unloading_end_datetime" : "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"payload" :
|
||||
{
|
||||
<#switch appointment.AppointmentType>
|
||||
<#case "APPOINTMENT_TYPE_LOADING">
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_LOADING>
|
||||
"unloading_appointment" : "false",
|
||||
"load_appointment" : "true",
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
@@ -20,7 +20,7 @@
|
||||
"planned_load_end_datetime": "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,time_zone_rfx),time_zone_rfx)}",
|
||||
</#if>
|
||||
<#break>
|
||||
<#case "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
"unloading_appointment" : "true",
|
||||
"load_appointment" : "false",
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"unloading_appointment" : "${eventRP.appointmentCustomFields.unloading?json_string}",
|
||||
"load_appointment" : "${eventRP.appointmentCustomFields.loading?json_string}",
|
||||
<#switch appointment.AppointmentType>
|
||||
<#case "APPOINTMENT_TYPE_LOADING">
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_LOADING>
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
"planned_load_start_datetime" : "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.StartDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
"planned_load_end_datetime": "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
@@ -21,8 +21,8 @@
|
||||
"planned_load_start_datetime" : "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.StartDateTime,time_zone_rfx),time_zone_rfx)}",
|
||||
"planned_load_end_datetime": "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,time_zone_rfx),time_zone_rfx)}",
|
||||
</#if>
|
||||
<#break>
|
||||
<#case "APPOINTMENT_TYPE_UNLOADING">
|
||||
<#break>
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
"planned_unloading_start_datetime":"${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.StartDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
"planned_unloading_end_datetime" : "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
{
|
||||
<#include "RPtoRFX_CarrierAppointmentDataUpdated.ftl">
|
||||
<#switch appointment.AppointmentType>
|
||||
<#case "APPOINTMENT_TYPE_LOADING">
|
||||
"unloading_appointment" : "false",
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_LOADING>
|
||||
"unloading_appointment" : "false",
|
||||
"load_appointment" : "true",
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
"planned_load_start_datetime" : "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.StartDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
@@ -21,8 +21,8 @@
|
||||
"planned_load_end_datetime": "${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.EndDateTime,time_zone_rfx),time_zone_rfx)}",
|
||||
</#if>
|
||||
<#break>
|
||||
<#case "APPOINTMENT_TYPE_UNLOADING">
|
||||
"unloading_appointment" : "true",
|
||||
<#case AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||
"unloading_appointment" : "true",
|
||||
"load_appointment" : "false",
|
||||
<#if appointment.TimeZone?? && appointment.TimeZone!="">
|
||||
"planned_unloading_start_datetime":"${DateTimeUTCtoRfxLocale(RfxDateTimetoUTCWithTimezone(appointment.Slot.StartDateTime,appointment.TimeZone),time_zone_rfx)}",
|
||||
|
||||
Reference in New Issue
Block a user