From 71c2512cbbc9cf7623b54029921699d66a0db45e Mon Sep 17 00:00:00 2001 From: Laure Pascal Date: Fri, 6 Oct 2023 16:39:27 +0200 Subject: [PATCH] modification "lineSK" to "SK" --- RFXtoRP_HsrPro_ExecutionflowDetected.ftl | 4 +- ...ExecutionflowDetected_SegmentationKeys.ftl | 44 +++++----- ...P_HsrReceiptList_ExecutionflowDetected.ftl | 4 +- ...ExecutionflowDetected_SegmentationKeys.ftl | 80 +++++++++---------- 4 files changed, 66 insertions(+), 66 deletions(-) rename RFXtoRP_HsrPro_ExecutionflowDetected_LineSegmentationKeys.ftl => RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl (96%) rename RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl => RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl (96%) diff --git a/RFXtoRP_HsrPro_ExecutionflowDetected.ftl b/RFXtoRP_HsrPro_ExecutionflowDetected.ftl index e38b479..dbe895e 100644 --- a/RFXtoRP_HsrPro_ExecutionflowDetected.ftl +++ b/RFXtoRP_HsrPro_ExecutionflowDetected.ftl @@ -78,8 +78,8 @@ "PriorityDate": "${forced_priority_date}", - <#-- Line Segmentation Keys inclusion --> - <#include "RFXtoRP_HsrPro_ExecutionflowDetected_LineSegmentationKeys.ftl"> + <#-- Segmentation Keys inclusion --> + <#include "RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl"> }, "Quantity" : diff --git a/RFXtoRP_HsrPro_ExecutionflowDetected_LineSegmentationKeys.ftl b/RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl similarity index 96% rename from RFXtoRP_HsrPro_ExecutionflowDetected_LineSegmentationKeys.ftl rename to RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl index eec0805..5c9da3d 100644 --- a/RFXtoRP_HsrPro_ExecutionflowDetected_LineSegmentationKeys.ftl +++ b/RFXtoRP_HsrPro_ExecutionflowDetected_SegmentationKeys.ftl @@ -1,23 +1,23 @@ -<#-- use protobuf of class HsrPro to find Reflex WMS fields names --> -<#-- - -"SegmentationKeys": [ - { - "Key": "Grade", - "Value": { "String" : "${line.grade_code_to_prepare}"} - }, - { - "Key": "Owner", - "Value": { "String" : "${line.owner_code_to_prepare}"} - }, - { - "Key": "BatchNumber", - <#if reflexMvtStockInterface.batch_1 == ""> - "Value": { "String" : "no batch"} - <#else> - "Value": { "String" : "${line.batch_1}"} - - } - ] ---> +<#-- use protobuf of class HsrPro to find Reflex WMS fields names --> +<#-- + +"SegmentationKeys": [ + { + "Key": "Grade", + "Value": { "String" : "${line.grade_code_to_prepare}"} + }, + { + "Key": "Owner", + "Value": { "String" : "${line.owner_code_to_prepare}"} + }, + { + "Key": "BatchNumber", + <#if reflexMvtStockInterface.batch_1 == ""> + "Value": { "String" : "no batch"} + <#else> + "Value": { "String" : "${line.batch_1}"} + + } + ] +--> "SegmentationKeys": [ ] \ No newline at end of file diff --git a/RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl b/RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl index ba8c19c..477456f 100644 --- a/RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl +++ b/RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl @@ -59,8 +59,8 @@ <#else> <#stop "line with detail"> - <#-- Line Segmentation Keys inclusion --> - <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl"> + <#-- Segmentation Keys inclusion --> + <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl"> }, "Quantity" : { diff --git a/RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl b/RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl similarity index 96% rename from RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl rename to RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl index 2282e33..8950e72 100644 --- a/RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl +++ b/RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl @@ -1,41 +1,41 @@ -<#-- use protobuf of class HsrReceiptList to find Reflex WMS fields names --> - -<#-- -"SegmentationKeys": [ - { - "Key": "Grade", - "Value": { "String" : "${line.grade_code}"} - }, - { - "Key": "Owner", - "Value": { "String" : "${line.owner_code}"} - }, - { - "Key": "BatchNumber", - <#if reflexMvtStockInterface.batch_1 == ""> - "Value": { "String" : "no batch"} - <#else> - "Value": { "String" : "${line_without_detail.batch_1}"} - - }, - { - "Key": "HeldForSpecificCode", - <#if line_without_detail.hold_for_specific_code == "true"> - "Value": { "Bool" : "True"} - <#else> - "Value": { "Bool" : "False"} - }, - - { - <#assign manufacturing_date = line_without_detail.ipg_date_of_manufacture_date?datetime(rfx_date_format_default)?iso_utc /> - "Key": "ManufacturingDate", - "Value": "Timestamp": { - "AuthorTimeZone": "${time_zone_rfx}", - "DateTime": "${manufacturing_date}" - } - } - - ] - ---> +<#-- use protobuf of class HsrReceiptList to find Reflex WMS fields names --> + +<#-- +"SegmentationKeys": [ + { + "Key": "Grade", + "Value": { "String" : "${line.grade_code}"} + }, + { + "Key": "Owner", + "Value": { "String" : "${line.owner_code}"} + }, + { + "Key": "BatchNumber", + <#if reflexMvtStockInterface.batch_1 == ""> + "Value": { "String" : "no batch"} + <#else> + "Value": { "String" : "${line_without_detail.batch_1}"} + + }, + { + "Key": "HeldForSpecificCode", + <#if line_without_detail.hold_for_specific_code == "true"> + "Value": { "Bool" : "True"} + <#else> + "Value": { "Bool" : "False"} + }, + + { + <#assign manufacturing_date = line_without_detail.ipg_date_of_manufacture_date?datetime(rfx_date_format_default)?iso_utc /> + "Key": "ManufacturingDate", + "Value": "Timestamp": { + "AuthorTimeZone": "${time_zone_rfx}", + "DateTime": "${manufacturing_date}" + } + } + + ] + +--> "SegmentationKeys": [ ] \ No newline at end of file