You've already forked reflex-wms-connector
Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 14f4eff9ff | |||
| d8c1be1a94 | |||
| b5200d1843 | |||
| e8028e20f1 | |||
| 8183beae61 | |||
| 30807bc840 | |||
| 6aafd2f6e9 | |||
| 8011a7f2ea | |||
| f829a02d98 | |||
| 11c928e257 | |||
| 7c9321002f | |||
| d4e5910933 | |||
| 65fca99577 | |||
| 89be22e1e1 | |||
| a4b5a1dbf0 | |||
| 5e3633aaa1 | |||
| abe628a3b0 | |||
| 779b4d0596 | |||
| e3f829683f | |||
| 2512bdda84 | |||
| 9618f5bffb | |||
| 7563a1e932 | |||
| e73a2ccd83 | |||
| e75658e7ac | |||
| e1981b8fbd | |||
| 285d5ff330 | |||
| 51fdb6d382 | |||
| d96c2c73c1 |
@@ -38,7 +38,7 @@
|
|||||||
<#local depot = actor>
|
<#local depot = actor>
|
||||||
<#else>
|
<#else>
|
||||||
<#if actor?length gt 4>
|
<#if actor?length gt 4>
|
||||||
<#local depot = actor[4..]>
|
<#local depot = actor[4..]>
|
||||||
<#else>
|
<#else>
|
||||||
<#local depot = actor>
|
<#local depot = actor>
|
||||||
</#if>
|
</#if>
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
<#local supplier = actor>
|
<#local supplier = actor>
|
||||||
<#else>
|
<#else>
|
||||||
<#if actor?length gt 4>
|
<#if actor?length gt 4>
|
||||||
<#local supplier = actor[4..]>
|
<#local supplier = actor[4..]>
|
||||||
<#else>
|
<#else>
|
||||||
<#local supplier = actor>
|
<#local supplier = actor>
|
||||||
</#if>
|
</#if>
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
<#local carrier = actor>
|
<#local carrier = actor>
|
||||||
<#else>
|
<#else>
|
||||||
<#if actor?length gt 4>
|
<#if actor?length gt 4>
|
||||||
<#local carrier = actor[4..]>
|
<#local carrier = actor[4..]>
|
||||||
<#else>
|
<#else>
|
||||||
<#local carrier = actor>
|
<#local carrier = actor>
|
||||||
</#if>
|
</#if>
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
<#local consignee = actor>
|
<#local consignee = actor>
|
||||||
<#else>
|
<#else>
|
||||||
<#if actor?length gt 4>
|
<#if actor?length gt 4>
|
||||||
<#local consignee = actor[4..]>
|
<#local consignee = actor[4..]>
|
||||||
<#else>
|
<#else>
|
||||||
<#local consignee = actor>
|
<#local consignee = actor>
|
||||||
</#if>
|
</#if>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
<#-- *********************************************** Action = DELETE ******************** -->
|
<#-- *********************************************** Action = DELETE ******************** -->
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
<#assign desPatch = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
</#switch>
|
</#switch>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
<#-- *********************************************** Action = DELETE ******************** -->
|
<#-- *********************************************** Action = DELETE ******************** -->
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
<#assign despNt = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
</#switch>
|
</#switch>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"RefID": "${reflexMvtStockInterface.hd_number?trim?json_string}"
|
"RefID": "${reflexMvtStockInterface.hd_number?trim?json_string}"
|
||||||
},
|
},
|
||||||
"Payload": {
|
"Payload": {
|
||||||
|
"Reference":"${reflexMvtStockInterface.hd_number?trim?json_string}",
|
||||||
"ReceivedContents" :[
|
"ReceivedContents" :[
|
||||||
{
|
{
|
||||||
"DateTime": {
|
"DateTime": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
"SegmentationSelections": [
|
"SegmentationKeys": [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,14 +18,14 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign depot = JsonUtil.jsonToMap(dataRfx)>
|
<#assign depot = JsonUtil.jsonToMap(dataRfx)>
|
||||||
<#stop>
|
<#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>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
<#-- *********************************************** Action = DELETE ******************** -->
|
<#-- *********************************************** Action = DELETE ******************** -->
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
<#assign packBranch = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
</#switch>
|
</#switch>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
<#case "D">
|
<#case "D">
|
||||||
<#-- *********************************************** Action = DELETE ******************** -->
|
<#-- *********************************************** Action = DELETE ******************** -->
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
<#assign packOrder = JsonUtil.jsonToMap(dataRfx)>
|
||||||
|
|
||||||
<#stop>
|
<#stop>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
<#stop >
|
<#stop >
|
||||||
</#switch>
|
</#switch>
|
||||||
|
|||||||
@@ -22,6 +22,11 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"Payload": {
|
"Payload": {
|
||||||
|
<#if despatched_ipg.carton_number != "000000000000000000">
|
||||||
|
"Reference": "${despatched_ipg.carton_number}",
|
||||||
|
<#else>
|
||||||
|
"Reference": "${despatched_ipg.hd_number}",
|
||||||
|
</#if>
|
||||||
"Information" :{
|
"Information" :{
|
||||||
<#if despatched_ipg.carton_number != "000000000000000000">
|
<#if despatched_ipg.carton_number != "000000000000000000">
|
||||||
"ContainerType": "${despatched_ipg.carton_type_code?json_string}"
|
"ContainerType": "${despatched_ipg.carton_type_code?json_string}"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
"UserMessage": {
|
"UserMessage": {
|
||||||
"Code": "${restResponsetMsg.status!"no Code"}",
|
"Code": "${restResponsetMsg.status!"no Code"}",
|
||||||
"Label": ${strJsonBody?truncate(32000,'...'),
|
"Label": ${strJsonBody?truncate(32000,'...')},
|
||||||
"Params": []
|
"Params": []
|
||||||
},
|
},
|
||||||
"DetailElements": [],
|
"DetailElements": [],
|
||||||
|
|||||||
@@ -27,6 +27,11 @@
|
|||||||
<#case "Updated">
|
<#case "Updated">
|
||||||
<#assign AddComma = false />
|
<#assign AddComma = false />
|
||||||
<#assign appointment = eventRP.data />
|
<#assign appointment = eventRP.data />
|
||||||
|
|
||||||
|
<#-- processing is stopped because the Updated event contains no relevant change to forward to the WMS. -->
|
||||||
|
<#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>
|
<#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)}",
|
"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