From 92e37e8baa56a009a42972f81dc9f1fda767f0f4 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 20 Mar 2024 10:42:42 +0100 Subject: [PATCH 1/4] modifs ipgmoved --- RFXtoRP_HsaIpgMove_StockMoved.ftl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RFXtoRP_HsaIpgMove_StockMoved.ftl b/RFXtoRP_HsaIpgMove_StockMoved.ftl index 86c7d55..2112525 100644 --- a/RFXtoRP_HsaIpgMove_StockMoved.ftl +++ b/RFXtoRP_HsaIpgMove_StockMoved.ftl @@ -24,7 +24,9 @@ "Payload": { "Goods": { "ItemID": "${reflexMvtStockInterface.item_code?trim?json_string}", + <#if (ipg_priority_datetime!="") && (ipg_priority_datetime?starts_with("00")== false) > "PriorityDate": "${ipg_priority_datetime}", + <#-- Segmentation keys inclusions --> <#include "RFXtoRP_HsaIpgMove_StockMoved_SegmentationKeys.ftl">, From f7125548db216287e867704d6101f86140b3b1dd Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 20 Mar 2024 10:55:37 +0100 Subject: [PATCH 2/4] modifs moved --- RFXtoRP_HsaIpgMove_StockMoved.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RFXtoRP_HsaIpgMove_StockMoved.ftl b/RFXtoRP_HsaIpgMove_StockMoved.ftl index 2112525..d9175fc 100644 --- a/RFXtoRP_HsaIpgMove_StockMoved.ftl +++ b/RFXtoRP_HsaIpgMove_StockMoved.ftl @@ -24,7 +24,7 @@ "Payload": { "Goods": { "ItemID": "${reflexMvtStockInterface.item_code?trim?json_string}", - <#if (ipg_priority_datetime!="") && (ipg_priority_datetime?starts_with("00")== false) > + <#if (reflexMvtStockInterface.ipg_priority_date!="") && (reflexMvtStockInterface.ipg_priority_date?starts_with("00")== false) > "PriorityDate": "${ipg_priority_datetime}", From 03362d6a8b5836d4fb7bfaad9c90424b88ecb65f Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 20 Mar 2024 17:07:47 +0100 Subject: [PATCH 3/4] modifs HuAdded --- RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl b/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl index 93c49ff..cb9e5b0 100644 --- a/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl +++ b/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl @@ -1,10 +1,10 @@ <#include "HfRpConfig.ftl"> <#include "ReflexUtils.ftl"> [ - - { + + { "Header": { - "ProjectID": "${projectRP}" + "ProjectID": "${projectRP}" }, "ID": { "RefID": "${despatched_ipg.hd_number}" @@ -28,7 +28,7 @@ "Width": { "Unit": "${length_unit_rfx}", "Value": ${preparation_line.despatched_hds_list[0].hd_type_width} - } + } } From 59a77832034319f1ddd717f4b7b417f8a9a0ea9f Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 20 Mar 2024 17:12:01 +0100 Subject: [PATCH 4/4] modifs priority date --- RFXtoRP_HfDtlStockLs_StockSnapshotted.ftl | 4 +++- RFXtoRP_HsaIpgMove_StockMoved.ftl | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/RFXtoRP_HfDtlStockLs_StockSnapshotted.ftl b/RFXtoRP_HfDtlStockLs_StockSnapshotted.ftl index 9152df1..deed817 100644 --- a/RFXtoRP_HfDtlStockLs_StockSnapshotted.ftl +++ b/RFXtoRP_HfDtlStockLs_StockSnapshotted.ftl @@ -27,7 +27,9 @@ <#assign priority_date = stock.priority_date?datetime(rfx_date_format_default)?iso_utc /> <#if (stock.priority_date!="") && (stock.priority_date?starts_with("00")== false) > "PriorityDate" : "${priority_date}", - + <#else> + "PriorityDate": "1970-01-01T00:00:00Z", + <#-- Segmentation keys inclusion --> <#include "RFXtoRP_HfDtlStockLs_StockSnapshotted_SegmentationKeys.ftl"> diff --git a/RFXtoRP_HsaIpgMove_StockMoved.ftl b/RFXtoRP_HsaIpgMove_StockMoved.ftl index d9175fc..4fc6aaf 100644 --- a/RFXtoRP_HsaIpgMove_StockMoved.ftl +++ b/RFXtoRP_HsaIpgMove_StockMoved.ftl @@ -25,7 +25,9 @@ "Goods": { "ItemID": "${reflexMvtStockInterface.item_code?trim?json_string}", <#if (reflexMvtStockInterface.ipg_priority_date!="") && (reflexMvtStockInterface.ipg_priority_date?starts_with("00")== false) > - "PriorityDate": "${ipg_priority_datetime}", + "PriorityDate": "${ipg_priority_datetime}", + <#else> + "PriorityDate": "1970-01-01T00:00:00Z", <#-- Segmentation keys inclusions -->