Addition of example in SK inclusions

This commit is contained in:
2023-09-06 16:43:31 +02:00
parent 7a46793fe7
commit d050ade2b9
7 changed files with 180 additions and 103 deletions

View File

@@ -1,24 +1,42 @@
<#-- **** file included in RFXtoRP_HsaItm_ItemCreated.ftl ***** -->
<#-- use protobuf of class HfDtlStockLs to find Reflex WMS fields names -->
<#--"SegmentationKeys": [
{
<#--
"SegmentationKeys": [
{
"Key": "Grade",
"Value": { "String" : "${stock.grade_code}"}
},
{
"Key": "Owner",
"Value": { "String" : "${stock.owner_code}"}
},
{
"Key": "BatchNumber",
<#if stock.batch_1 == "">
"Value": { "String" : "no batch"}
<#else>
"Value": { "String" : "${stock.batch_1}"}
</#if>
</#if>
},
{
"Key": "Grade",
"Value": { "String" : "${SegmentationKeys_KV[stock.grade_code]!Default_Value_Grade_SegmentationKey}"}
{
"Key": "HeldForSpecificCode",
"Value": { "Bool" : "${stock.held_for_specific_code}"}
},
{
"Key": "Owner",
"Value": { "String" : "${stock.owner_code}"}
}
],
{
<#assign manufacturing_datetime = RfxDateTimetoUTC(stock.Date_of_manufacture,time_zone_offset_rfx) />
"Key": "ManufacturingDate",
"Value": "Timestamp": {
"AuthorTimeZone": "${time_zone_rfx}",
"DateTime": "${manufacturing_datetime}"
}
}
]
-->
"SegmentationKeys": [ ]