You've already forked reflex-wms-connector
Compare commits
35 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8011a7f2ea | ||
| f829a02d98 | |||
| 11c928e257 | |||
| 7c9321002f | |||
| d4e5910933 | |||
| 65fca99577 | |||
| 89be22e1e1 | |||
| a4b5a1dbf0 | |||
| 5e3633aaa1 | |||
| abe628a3b0 | |||
| 779b4d0596 | |||
| ff7a38fc1f | |||
| 49365d0879 | |||
| 77ef62f002 | |||
| e3f829683f | |||
| 2512bdda84 | |||
| 9618f5bffb | |||
| 7563a1e932 | |||
| e73a2ccd83 | |||
| e75658e7ac | |||
| e1981b8fbd | |||
| 7942a0dfc0 | |||
| 16a6ad77c1 | |||
| 8d87e02969 | |||
| 285d5ff330 | |||
| 51fdb6d382 | |||
| d96c2c73c1 | |||
| 959a0d02a8 | |||
| ed1d989b2d | |||
| f490cce345 | |||
| 2a70e2ca76 | |||
| a25e4046a3 | |||
| 012c4007c7 | |||
| f131a91b36 | |||
| b7d97fbd63 |
@@ -37,7 +37,11 @@
|
|||||||
<#if uniqueness>
|
<#if uniqueness>
|
||||||
<#local depot = actor>
|
<#local depot = actor>
|
||||||
<#else>
|
<#else>
|
||||||
|
<#if actor?length gt 4>
|
||||||
<#local depot = actor[4..]>
|
<#local depot = actor[4..]>
|
||||||
|
<#else>
|
||||||
|
<#local depot = actor>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#return (depot)>
|
<#return (depot)>
|
||||||
</#function>
|
</#function>
|
||||||
@@ -78,7 +82,11 @@
|
|||||||
<#if uniqueness>
|
<#if uniqueness>
|
||||||
<#local supplier = actor>
|
<#local supplier = actor>
|
||||||
<#else>
|
<#else>
|
||||||
|
<#if actor?length gt 4>
|
||||||
<#local supplier = actor[4..]>
|
<#local supplier = actor[4..]>
|
||||||
|
<#else>
|
||||||
|
<#local supplier = actor>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#return (supplier)>
|
<#return (supplier)>
|
||||||
</#function>
|
</#function>
|
||||||
@@ -117,7 +125,11 @@
|
|||||||
<#if uniqueness>
|
<#if uniqueness>
|
||||||
<#local carrier = actor>
|
<#local carrier = actor>
|
||||||
<#else>
|
<#else>
|
||||||
|
<#if actor?length gt 4>
|
||||||
<#local carrier = actor[4..]>
|
<#local carrier = actor[4..]>
|
||||||
|
<#else>
|
||||||
|
<#local carrier = actor>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#return (carrier)>
|
<#return (carrier)>
|
||||||
</#function>
|
</#function>
|
||||||
@@ -156,7 +168,11 @@
|
|||||||
<#if uniqueness>
|
<#if uniqueness>
|
||||||
<#local consignee = actor>
|
<#local consignee = actor>
|
||||||
<#else>
|
<#else>
|
||||||
|
<#if actor?length gt 4>
|
||||||
<#local consignee = actor[4..]>
|
<#local consignee = actor[4..]>
|
||||||
|
<#else>
|
||||||
|
<#local consignee = actor>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#return (consignee)>
|
<#return (consignee)>
|
||||||
</#function>
|
</#function>
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
<#case "C">
|
<#case "C">
|
||||||
<#case "U">
|
<#case "U">
|
||||||
<#case "D">
|
<#case "D">
|
||||||
<#stop "no generic FTL file available yet for Grades">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,9 +9,7 @@
|
|||||||
<#case "C">
|
<#case "C">
|
||||||
<#case "U">
|
<#case "U">
|
||||||
<#case "D">
|
<#case "D">
|
||||||
|
<#stop>
|
||||||
<#stop "no generic FTL file available yet for LV types">
|
|
||||||
|
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<#case "C">
|
<#case "C">
|
||||||
<#case "U">
|
<#case "U">
|
||||||
<#case "D">
|
<#case "D">
|
||||||
<#stop "no generic FTL file available yet for Owners">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop "no generic FTL file available yet for desPatch">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop "no generic FTL file available yet for desPatch">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop "no generic FTL file available yet for despNt">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop "no generic FTL file available yet for despNt">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
</#if>
|
</#if>
|
||||||
"ExternalInfo" : "${reflexMvtStockInterface.stock_move_reference?json_string}",
|
"ExternalInfo" : "${reflexMvtStockInterface.stock_move_reference?json_string}",
|
||||||
<#if reflexMvtStockInterface.ipg_move_operation_year_number!= 0>
|
<#if reflexMvtStockInterface.ipg_move_operation_year_number!= 0>
|
||||||
"OperationReference": "${reflexMvtStockInterface.ipg_move_operation_year_number} - ${reflexMvtStockInterface.ipg_move_operation_number}",
|
"OperationReference": "${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}-${reflexMvtStockInterface.ipg_move_operation_year_number}-${reflexMvtStockInterface.ipg_move_operation_number}",
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
"Quantity":
|
"Quantity":
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<#-- **** input parameters ***** -->
|
<#-- **** input parameters ***** -->
|
||||||
<#-- input : message HARDIS WMS -->
|
<#-- input : message RFX -->
|
||||||
<#-- project : projectId in ReflexPlatform -->
|
<#-- project : projectId in ReflexPlatform -->
|
||||||
<#-- organisation : organisationtId in ReflexPlatform -->
|
<#-- organisation : organisationtId in ReflexPlatform -->
|
||||||
<#include "ActorPrefix.ftl">
|
<#include "ActorPrefix.ftl">
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[
|
[
|
||||||
<#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt_status.status.creation_datetime,time_zone_rfx) />
|
<#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt_status.status.creation_datetime,time_zone_rfx) />
|
||||||
|
<#assign ref_datetime2 = AddSecondsToDatetime(ref_datetime?datetime.iso, 1)?iso_utc />
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
@@ -19,7 +20,7 @@
|
|||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
"RefDate": {
|
"RefDate": {
|
||||||
"DateTime": "${ref_datetime}",
|
"DateTime": "${ref_datetime2}",
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36,34 +36,6 @@
|
|||||||
<#break>
|
<#break>
|
||||||
<#case "U">
|
<#case "U">
|
||||||
<#-- *********************************************** Action = Update ********************-->
|
<#-- *********************************************** Action = Update ********************-->
|
||||||
<#if carrier_apt.constant_appointment?? && carrier_apt.constant_appointment== "true">
|
|
||||||
<#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!="">
|
|
||||||
<#assign ID = "${carrier_apt.appointment_reference?json_string}-${carrier_apt.year_number}-${carrier_apt.appointment_number}" />
|
|
||||||
<#else>
|
|
||||||
<#assign ID = "${carrier_apt.year_number}-${carrier_apt.appointment_number}" />
|
|
||||||
</#if>
|
|
||||||
<#else>
|
|
||||||
<#if carrier_apt.appointment_reference?? && carrier_apt.appointment_reference!="">
|
|
||||||
<#assign ID = "${carrier_apt.appointment_reference?json_string}" />
|
|
||||||
<#else>
|
|
||||||
<#assign ID = "${carrier_apt.year_number}-${carrier_apt.appointment_number}" />
|
|
||||||
</#if>
|
|
||||||
</#if>
|
|
||||||
<#assign payload = '{"Header": {"ProjectID": "${projectRP}:${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}"},"IDs": [{"RefID": "${ID}"}],"Options": {"Only": ["ID.RefID","Payload.WMSCreated"]}}'/>
|
|
||||||
<#assign queryApiReflexPlatformID = QueryApiReflexPlatformID.AppointmentGetByIds>
|
|
||||||
<#assign response = QueryApiReflexPlatformCall.call(queryApiReflexPlatformID,payload) />
|
|
||||||
<#assign appointmentRP = JsonUtil.jsonToMap(response)>
|
|
||||||
|
|
||||||
<#if !appointmentRP?? || !appointmentRP.Objects?? || !appointmentRP.Objects[0]?? || !appointmentRP.Objects[0].ID.RefID?? || !appointmentRP.Objects[0].Payload?? || !appointmentRP.Objects[0].Payload.WMSCreated?? || !appointmentRP.Objects[0].Payload.WMSCreated>
|
|
||||||
[
|
|
||||||
{
|
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.BookingForceBookAppointment>
|
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
|
||||||
"datas" :
|
|
||||||
<#include "RFXtoRP_HsrCarrierApt_BookingForceBookAppointment.ftl">
|
|
||||||
}
|
|
||||||
]
|
|
||||||
<#else>
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentCustomFieldsUpdated>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.AppointmentCustomFieldsUpdated>
|
||||||
@@ -159,7 +131,6 @@
|
|||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
]
|
]
|
||||||
</#if>
|
|
||||||
<#break>
|
<#break>
|
||||||
<#case "D">
|
<#case "D">
|
||||||
<#-- *********************************************** Action = Delete ******************** -->
|
<#-- *********************************************** Action = Delete ******************** -->
|
||||||
|
|||||||
@@ -61,8 +61,12 @@
|
|||||||
</#if>
|
</#if>
|
||||||
<#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
<#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||||
<#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_unloading_start_datetime?datetime.iso,carrier_apt.planned_unloading_end_datetime?datetime.iso) />
|
<#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_unloading_start_datetime?datetime.iso,carrier_apt.planned_unloading_end_datetime?datetime.iso) />
|
||||||
<#if (duration <= 0)>
|
<#if (duration < 0)>
|
||||||
<#stop "planned_unloading_start_datetime or planned_unloading_end_datetime field of appointmend are not valid" >
|
<#stop "planned_unloading_start_datetime or planned_unloading_end_datetime field of appointmend are not valid" >
|
||||||
|
<#else>
|
||||||
|
<#if (duration == 0)>
|
||||||
|
<#assign duration = 1 />
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#if carrier_apt.unloading_appointment == "false" && carrier_apt.load_appointment == "true" >
|
<#if carrier_apt.unloading_appointment == "false" && carrier_apt.load_appointment == "true" >
|
||||||
@@ -71,8 +75,12 @@
|
|||||||
</#if>
|
</#if>
|
||||||
<#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_LOADING>
|
<#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_LOADING>
|
||||||
<#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_load_start_datetime?datetime.iso,carrier_apt.planned_load_end_datetime?datetime.iso) />
|
<#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_load_start_datetime?datetime.iso,carrier_apt.planned_load_end_datetime?datetime.iso) />
|
||||||
<#if (duration <= 0)>
|
<#if (duration < 0)>
|
||||||
<#stop "planned_unloading_start_datetime or planned_unloading_end_datetime field of appointmend are not valid" >
|
<#stop "planned_load_start_datetime or planned_load_end_datetime field of appointmend are not valid" >
|
||||||
|
<#else>
|
||||||
|
<#if (duration == 0)>
|
||||||
|
<#assign duration = 1 />
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true">
|
<#if carrier_apt.unloading_appointment == "true" && carrier_apt.load_appointment == "true">
|
||||||
@@ -81,8 +89,12 @@
|
|||||||
</#if>
|
</#if>
|
||||||
<#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
<#assign appointmentType = AppointmentType.APPOINTMENT_TYPE_UNLOADING>
|
||||||
<#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_unloading_start_datetime?datetime.iso,carrier_apt.planned_load_end_datetime?datetime.iso) />
|
<#assign duration = DurationBetweenTwoDatetimeInSeconds(carrier_apt.planned_unloading_start_datetime?datetime.iso,carrier_apt.planned_load_end_datetime?datetime.iso) />
|
||||||
<#if (duration <= 0)>
|
<#if (duration < 0)>
|
||||||
<#stop "planned_unloading_start_datetime or planned_load_end_datetime field of appointmend are not valid" >
|
<#stop "planned_unloading_start_datetime or planned_load_end_datetime field of appointmend are not valid" >
|
||||||
|
<#else>
|
||||||
|
<#if (duration == 0)>
|
||||||
|
<#assign duration = 1 />
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#stop "Appointment type not supported" >
|
<#stop "Appointment type not supported" >
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[
|
[
|
||||||
<#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt.metadata.creation_datetime,time_zone_rfx) />
|
<#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt.metadata.last_update_datetime,time_zone_rfx) />
|
||||||
<#assign ref_datetime2 = AddSecondsToDatetime(ref_datetime?datetime.iso, 60)?iso_utc />
|
<#assign ref_datetime2 = AddSecondsToDatetime(ref_datetime?datetime.iso, 1)?iso_utc />
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
|
|||||||
@@ -17,22 +17,14 @@
|
|||||||
<#-- *********************************************** Action = CREATE or UPDATE ******************** -->
|
<#-- *********************************************** Action = CREATE or UPDATE ******************** -->
|
||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign depot = JsonUtil.jsonToMap(dataRfx)>
|
<#assign depot = JsonUtil.jsonToMap(dataRfx)>
|
||||||
[
|
<#stop>
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
]
|
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
<#-- *********************************************** Action = DELETE *************************** -->
|
<#-- *********************************************** Action = DELETE *************************** -->
|
||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign depot = JsonUtil.jsonToMap(dataRfx)>
|
<#assign depot = JsonUtil.jsonToMap(dataRfx)>
|
||||||
[
|
<#stop>
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
]
|
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#default>
|
<#default>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop "no generic FTL file available yet for Pack Branch">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop "no generic FTL file available yet for Pack Branch">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop "no generic FTL file available yet for Pack Order">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop "no generic FTL file available yet for Pack Order">
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
|
|||||||
@@ -23,16 +23,16 @@
|
|||||||
},
|
},
|
||||||
"TechMessage": {
|
"TechMessage": {
|
||||||
"Code": "${restResponsetMsg.status!"no Code"}",
|
"Code": "${restResponsetMsg.status!"no Code"}",
|
||||||
"Label": ${strJsonBody}
|
"Label": ${strJsonBody?truncate(32000,'...')}
|
||||||
},
|
},
|
||||||
"UserMessage": {
|
"UserMessage": {
|
||||||
"Code": "${restResponsetMsg.status!"no Code"}",
|
"Code": "${restResponsetMsg.status!"no Code"}",
|
||||||
"Label": ${strJsonBody},
|
"Label": ${strJsonBody?truncate(32000,'...')},
|
||||||
"Params": []
|
"Params": []
|
||||||
},
|
},
|
||||||
"DetailElements": [],
|
"DetailElements": [],
|
||||||
"CorrelationID": "${id.correlationid!"no Correlationid"}",
|
"CorrelationID": "${id.correlationid!"no Correlationid"}",
|
||||||
"ContextPayload": ${strJsonBody},
|
"ContextPayload": ${strJsonBody?truncate(32000,'...')},
|
||||||
"Type": "${event}",
|
"Type": "${event}",
|
||||||
"Task": "${id.apiRestReflexID!"no Task"}",
|
"Task": "${id.apiRestReflexID!"no Task"}",
|
||||||
"OriginalID": "${id.refid!"no OriginalID"?trim?json_string}",
|
"OriginalID": "${id.refid!"no OriginalID"?trim?json_string}",
|
||||||
|
|||||||
@@ -27,11 +27,11 @@
|
|||||||
<#case "Updated">
|
<#case "Updated">
|
||||||
<#assign AddComma = false />
|
<#assign AddComma = false />
|
||||||
<#assign appointment = eventRP.data />
|
<#assign appointment = eventRP.data />
|
||||||
|
|
||||||
|
<#if !eventRP.commissionsUpdated!false && !eventRP.reasonUpdated!false && !eventRP.slotUpdated!false && !eventRP.carrierInformationUpdated!false>
|
||||||
|
<#stop>
|
||||||
|
</#if>
|
||||||
[
|
[
|
||||||
<<<<<<< HEAD
|
|
||||||
<#if eventRP.commissionsUpdated>
|
|
||||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING" && eventRP.addedCommissions?? && eventRP.addedCommissions !="">
|
|
||||||
=======
|
|
||||||
<#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.WMSCreated??) || !appointment.WMSCreated) && appointment.Status?? && appointment.Status.Current?? && appointment.Status.Current.StatusCode?? && appointment.Status.Current.StatusCode == AppointmentStatusCode.APPOINTMENT_0150_ALLOCATION_ERROR>
|
||||||
{
|
{
|
||||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_create>
|
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_create>
|
||||||
@@ -42,7 +42,6 @@
|
|||||||
<#else>
|
<#else>
|
||||||
<#if eventRP.commissionsUpdated>
|
<#if eventRP.commissionsUpdated>
|
||||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.addedUnloadCommissions?? && eventRP.addedUnloadCommissions != "">
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.addedUnloadCommissions?? && eventRP.addedUnloadCommissions != "">
|
||||||
>>>>>>> develop-1.2
|
|
||||||
<#if eventRP.appointmentCustomFields?has_content>
|
<#if eventRP.appointmentCustomFields?has_content>
|
||||||
{
|
{
|
||||||
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number>
|
<#assign apiRestReflexID = ApiRestReflexID.appointment_post_physical_receipt_associations_by_number>
|
||||||
@@ -58,21 +57,12 @@
|
|||||||
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl">
|
<#include "RPtoRFX_CarrierAppointmentPhysicalReceiptAssociationByRef.ftl">
|
||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
<<<<<<< HEAD
|
|
||||||
<#assign AddComma = true />
|
|
||||||
</#if>
|
|
||||||
<#if appointment.AppointmentType == "APPOINTMENT_TYPE_UNLOADING" && eventRP.removedCommissions?? && eventRP.removedCommissions!="">
|
|
||||||
<#if AddComma == true>
|
|
||||||
,
|
|
||||||
</#if>
|
|
||||||
=======
|
|
||||||
<#assign AddComma = true />
|
<#assign AddComma = true />
|
||||||
</#if>
|
</#if>
|
||||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.removedUnloadCommissions?? && eventRP.removedUnloadCommissions!="">
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING && eventRP.removedUnloadCommissions?? && eventRP.removedUnloadCommissions!="">
|
||||||
<#if AddComma == true>
|
<#if AddComma == true>
|
||||||
,
|
,
|
||||||
</#if>
|
</#if>
|
||||||
>>>>>>> develop-1.2
|
|
||||||
|
|
||||||
<#if eventRP.appointmentCustomFields?has_content>
|
<#if eventRP.appointmentCustomFields?has_content>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,15 +37,15 @@
|
|||||||
"requested_delivery_start_datetime": "${DateTimeUTCtoRfxLocale(.now?iso_utc?string,time_zone_rfx)}",
|
"requested_delivery_start_datetime": "${DateTimeUTCtoRfxLocale(.now?iso_utc?string,time_zone_rfx)}",
|
||||||
</#if>
|
</#if>
|
||||||
"requested_delivery_date_type": "${requested_delivery_date_type}",
|
"requested_delivery_date_type": "${requested_delivery_date_type}",
|
||||||
"consolidated_delivery": "${consolidated_delivery_flag}",
|
"consolidated_delivery": "false",
|
||||||
"pick_sequence_code": "${pick_sequence_code}",
|
"pick_sequence_code": "${pick_sequence_code}",
|
||||||
"intermediate_consignee": "false",
|
"intermediate_consignee": "false",
|
||||||
"protected": "${protected_flag}",
|
"protected": "false",
|
||||||
"automatic_generation": "${automatic_generation_flag}",
|
"automatic_generation": "true",
|
||||||
"deactivate": "false",
|
"deactivate": "false",
|
||||||
"optional_attributes": {
|
"optional_attributes": {
|
||||||
<#include "RPtoRFX_PrepOrder_OptionalAttributes.ftl">
|
<#include "RPtoRFX_PrepOrder_OptionalAttributes.ftl">
|
||||||
"apt_with_end_consignee": "${apt_with_end_consignee_flag}",
|
"apt_with_end_consignee": "false",
|
||||||
"apt_with_intermediate": "false",
|
"apt_with_intermediate": "false",
|
||||||
"load_grouping": "${load_grouping}"
|
"load_grouping": "${load_grouping}"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,11 +18,7 @@
|
|||||||
<#assign originator_code = ""/>
|
<#assign originator_code = ""/>
|
||||||
<#assign preparation_type_code = ""/>
|
<#assign preparation_type_code = ""/>
|
||||||
<#assign requested_delivery_date_type = ""/>
|
<#assign requested_delivery_date_type = ""/>
|
||||||
<#assign consolidated_delivery_flag ="false"/>
|
|
||||||
<#assign pick_sequence_code = ""/>
|
<#assign pick_sequence_code = ""/>
|
||||||
<#assign protected_flag ="false"/>
|
|
||||||
<#assign automatic_generation_flag ="false"/>
|
|
||||||
<#assign apt_with_end_consignee_flag="false"/>
|
|
||||||
|
|
||||||
<#-- A supprimer si utilisation de la table de correspondance-->
|
<#-- A supprimer si utilisation de la table de correspondance-->
|
||||||
<#--To be deleted if using the correspondence table-->
|
<#--To be deleted if using the correspondence table-->
|
||||||
|
|||||||
Reference in New Issue
Block a user