48 lines
1.4 KiB
Java
48 lines
1.4 KiB
Java
<#-- use protobuf of class HfDtlStockLs to find HARDIS WMS fields names -->
|
|
|
|
<#--
|
|
Best practices:
|
|
If the SK is of type:
|
|
- string: add ?json_string (e.g. "${stock.batch_1?json_string}")
|
|
- boolean: possible values: true and false
|
|
- datetime: expected format: 2025-10-30T10:12:10.000Z
|
|
- decimal number: the separator is a point (e.g. 10.5)
|
|
|
|
"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?json_string}"}
|
|
</#if>
|
|
},
|
|
{
|
|
"Key": "HeldForSpecificCode",
|
|
"Value": { "Bool" : "${stock.held_for_specific_code}"}
|
|
},
|
|
|
|
{
|
|
<#assign manufacturing_datetime = RfxDateTimetoUTCWithTimezone(stock.Date_of_manufacture,time_zone_rfx) />
|
|
"Key": "ManufacturingDate",
|
|
"Value": "Timestamp": {
|
|
"AuthorTimeZone": "${time_zone_rfx}",
|
|
"DateTime": "${manufacturing_datetime}"
|
|
}
|
|
}
|
|
]
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
"SegmentationKeys": [ ] |