You've already forked reflex-wms-connector
Compare commits
27 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 |
@@ -37,7 +37,11 @@
|
||||
<#if uniqueness>
|
||||
<#local depot = actor>
|
||||
<#else>
|
||||
<#if actor?length gt 4>
|
||||
<#local depot = actor[4..]>
|
||||
<#else>
|
||||
<#local depot = actor>
|
||||
</#if>
|
||||
</#if>
|
||||
<#return (depot)>
|
||||
</#function>
|
||||
@@ -78,7 +82,11 @@
|
||||
<#if uniqueness>
|
||||
<#local supplier = actor>
|
||||
<#else>
|
||||
<#if actor?length gt 4>
|
||||
<#local supplier = actor[4..]>
|
||||
<#else>
|
||||
<#local supplier = actor>
|
||||
</#if>
|
||||
</#if>
|
||||
<#return (supplier)>
|
||||
</#function>
|
||||
@@ -117,7 +125,11 @@
|
||||
<#if uniqueness>
|
||||
<#local carrier = actor>
|
||||
<#else>
|
||||
<#if actor?length gt 4>
|
||||
<#local carrier = actor[4..]>
|
||||
<#else>
|
||||
<#local carrier = actor>
|
||||
</#if>
|
||||
</#if>
|
||||
<#return (carrier)>
|
||||
</#function>
|
||||
@@ -156,7 +168,11 @@
|
||||
<#if uniqueness>
|
||||
<#local consignee = actor>
|
||||
<#else>
|
||||
<#if actor?length gt 4>
|
||||
<#local consignee = actor[4..]>
|
||||
<#else>
|
||||
<#local consignee = actor>
|
||||
</#if>
|
||||
</#if>
|
||||
<#return (consignee)>
|
||||
</#function>
|
||||
@@ -9,7 +9,7 @@
|
||||
<#case "C">
|
||||
<#case "U">
|
||||
<#case "D">
|
||||
<#stop "no generic FTL file available yet for Grades">
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
|
||||
|
||||
@@ -9,9 +9,7 @@
|
||||
<#case "C">
|
||||
<#case "U">
|
||||
<#case "D">
|
||||
|
||||
<#stop "no generic FTL file available yet for LV types">
|
||||
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<#case "C">
|
||||
<#case "U">
|
||||
<#case "D">
|
||||
<#stop "no generic FTL file available yet for Owners">
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
||||
|
||||
<#stop "no generic FTL file available yet for desPatch">
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
<#case "D">
|
||||
@@ -24,7 +24,7 @@
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
||||
|
||||
<#stop "no generic FTL file available yet for desPatch">
|
||||
<#stop>
|
||||
<#break>
|
||||
<#default>
|
||||
<#stop >
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
||||
|
||||
<#stop "no generic FTL file available yet for despNt">
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
<#case "D">
|
||||
@@ -24,7 +24,7 @@
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
||||
|
||||
<#stop "no generic FTL file available yet for despNt">
|
||||
<#stop>
|
||||
<#break>
|
||||
<#default>
|
||||
<#stop >
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</#if>
|
||||
"ExternalInfo" : "${reflexMvtStockInterface.stock_move_reference?json_string}",
|
||||
<#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>
|
||||
|
||||
"Quantity":
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<#-- **** input parameters ***** -->
|
||||
<#-- input : message HARDIS WMS -->
|
||||
<#-- input : message RFX -->
|
||||
<#-- project : projectId in ReflexPlatform -->
|
||||
<#-- organisation : organisationtId in ReflexPlatform -->
|
||||
<#include "ActorPrefix.ftl">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[
|
||||
<#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": {
|
||||
"ProjectID": "${projectRP}"
|
||||
@@ -19,7 +20,7 @@
|
||||
</#if>
|
||||
</#if>
|
||||
"RefDate": {
|
||||
"DateTime": "${ref_datetime}",
|
||||
"DateTime": "${ref_datetime2}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[
|
||||
<#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt.metadata.creation_datetime,time_zone_rfx) />
|
||||
<#assign ref_datetime2 = AddSecondsToDatetime(ref_datetime?datetime.iso, 60)?iso_utc />
|
||||
<#assign ref_datetime = RfxDateTimetoUTCWithTimezone(carrier_apt.metadata.last_update_datetime,time_zone_rfx) />
|
||||
<#assign ref_datetime2 = AddSecondsToDatetime(ref_datetime?datetime.iso, 1)?iso_utc />
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
|
||||
@@ -17,22 +17,14 @@
|
||||
<#-- *********************************************** Action = CREATE or UPDATE ******************** -->
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign depot = JsonUtil.jsonToMap(dataRfx)>
|
||||
[
|
||||
{
|
||||
|
||||
}
|
||||
]
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
<#case "D">
|
||||
<#-- *********************************************** Action = DELETE *************************** -->
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign depot = JsonUtil.jsonToMap(dataRfx)>
|
||||
[
|
||||
{
|
||||
|
||||
}
|
||||
]
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
<#default>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
||||
|
||||
<#stop "no generic FTL file available yet for Pack Branch">
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
<#case "D">
|
||||
@@ -24,7 +24,7 @@
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
||||
|
||||
<#stop "no generic FTL file available yet for Pack Branch">
|
||||
<#stop>
|
||||
<#break>
|
||||
<#default>
|
||||
<#stop >
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
||||
|
||||
<#stop "no generic FTL file available yet for Pack Order">
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
<#case "D">
|
||||
@@ -24,7 +24,7 @@
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
||||
|
||||
<#stop "no generic FTL file available yet for Pack Order">
|
||||
<#stop>
|
||||
<#break>
|
||||
<#default>
|
||||
<#stop >
|
||||
|
||||
@@ -23,16 +23,16 @@
|
||||
},
|
||||
"TechMessage": {
|
||||
"Code": "${restResponsetMsg.status!"no Code"}",
|
||||
"Label": ${strJsonBody}
|
||||
"Label": ${strJsonBody?truncate(32000,'...')}
|
||||
},
|
||||
"UserMessage": {
|
||||
"Code": "${restResponsetMsg.status!"no Code"}",
|
||||
"Label": ${strJsonBody},
|
||||
"Label": ${strJsonBody?truncate(32000,'...')},
|
||||
"Params": []
|
||||
},
|
||||
"DetailElements": [],
|
||||
"CorrelationID": "${id.correlationid!"no Correlationid"}",
|
||||
"ContextPayload": ${strJsonBody},
|
||||
"ContextPayload": ${strJsonBody?truncate(32000,'...')},
|
||||
"Type": "${event}",
|
||||
"Task": "${id.apiRestReflexID!"no Task"}",
|
||||
"OriginalID": "${id.refid!"no OriginalID"?trim?json_string}",
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
<#case "Updated">
|
||||
<#assign AddComma = false />
|
||||
<#assign appointment = eventRP.data />
|
||||
|
||||
<#if !eventRP.commissionsUpdated!false && !eventRP.reasonUpdated!false && !eventRP.slotUpdated!false && !eventRP.carrierInformationUpdated!false>
|
||||
<#stop>
|
||||
</#if>
|
||||
[
|
||||
<#if appointment?? && (!(appointment.WMSCreated??) || !appointment.WMSCreated) && appointment.Status?? && appointment.Status.Current?? && appointment.Status.Current.StatusCode?? && appointment.Status.Current.StatusCode == AppointmentStatusCode.APPOINTMENT_0150_ALLOCATION_ERROR>
|
||||
{
|
||||
|
||||
@@ -37,15 +37,15 @@
|
||||
"requested_delivery_start_datetime": "${DateTimeUTCtoRfxLocale(.now?iso_utc?string,time_zone_rfx)}",
|
||||
</#if>
|
||||
"requested_delivery_date_type": "${requested_delivery_date_type}",
|
||||
"consolidated_delivery": "${consolidated_delivery_flag}",
|
||||
"consolidated_delivery": "false",
|
||||
"pick_sequence_code": "${pick_sequence_code}",
|
||||
"intermediate_consignee": "false",
|
||||
"protected": "${protected_flag}",
|
||||
"automatic_generation": "${automatic_generation_flag}",
|
||||
"protected": "false",
|
||||
"automatic_generation": "true",
|
||||
"deactivate": "false",
|
||||
"optional_attributes": {
|
||||
<#include "RPtoRFX_PrepOrder_OptionalAttributes.ftl">
|
||||
"apt_with_end_consignee": "${apt_with_end_consignee_flag}",
|
||||
"apt_with_end_consignee": "false",
|
||||
"apt_with_intermediate": "false",
|
||||
"load_grouping": "${load_grouping}"
|
||||
}
|
||||
|
||||
@@ -18,11 +18,7 @@
|
||||
<#assign originator_code = ""/>
|
||||
<#assign preparation_type_code = ""/>
|
||||
<#assign requested_delivery_date_type = ""/>
|
||||
<#assign consolidated_delivery_flag ="false"/>
|
||||
<#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-->
|
||||
<#--To be deleted if using the correspondence table-->
|
||||
|
||||
Reference in New Issue
Block a user