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 86c7d55..4fc6aaf 100644 --- a/RFXtoRP_HsaIpgMove_StockMoved.ftl +++ b/RFXtoRP_HsaIpgMove_StockMoved.ftl @@ -24,7 +24,11 @@ "Payload": { "Goods": { "ItemID": "${reflexMvtStockInterface.item_code?trim?json_string}", - "PriorityDate": "${ipg_priority_datetime}", + <#if (reflexMvtStockInterface.ipg_priority_date!="") && (reflexMvtStockInterface.ipg_priority_date?starts_with("00")== false) > + "PriorityDate": "${ipg_priority_datetime}", + <#else> + "PriorityDate": "1970-01-01T00:00:00Z", + <#-- Segmentation keys inclusions --> <#include "RFXtoRP_HsaIpgMove_StockMoved_SegmentationKeys.ftl">, diff --git a/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl b/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl new file mode 100644 index 0000000..cb9e5b0 --- /dev/null +++ b/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl @@ -0,0 +1,37 @@ +<#include "HfRpConfig.ftl"> +<#include "ReflexUtils.ftl"> +[ + + { + "Header": { + "ProjectID": "${projectRP}" + }, + "ID": { + "RefID": "${despatched_ipg.hd_number}" + }, + + "Payload": { + +"IncludedHandlingunitIDs": [ "${despatched_ipg.carton_number}" ] + <#if preparation_line.despatched_hds_list?? > + , + "Information": { + "ContainerType": "${preparation_line.despatched_hds_list[0].hd_type_code}", + "Length": { + "Unit": "${length_unit_rfx}", + "Value": ${preparation_line.despatched_hds_list[0].hd_type_depth} + }, + "Weight": { + "Unit": "${weight_unit_rfx}", + "Value": ${preparation_line.despatched_hds_list[0].hd_gross_weight} + }, + "Width": { + "Unit": "${length_unit_rfx}", + "Value": ${preparation_line.despatched_hds_list[0].hd_type_width} + } + } + + + } + } +] \ No newline at end of file