mise en forme

This commit is contained in:
Laure Pascal 2023-09-04 16:41:21 +02:00
parent 353f8a8ee2
commit a7055b1a1e
66 changed files with 1667 additions and 1667 deletions

View File

@ -1,14 +1,14 @@
<#-- Warning the file is generated, if you modify it manually, do not enable automatic update via the pipeline --> <#-- Warning the file is generated, if you modify it manually, do not enable automatic update via the pipeline -->
<#-- Date of last generation : Jul 10, 2023 2:39:59 PM --> <#-- Date of last generation : Jul 10, 2023 2:39:59 PM -->
<#-- if LVID is egal to **quantity_in_base_lv** keyword then LVID is egal to base VL of the item --> <#-- if LVID is egal to **quantity_in_base_lv** keyword then LVID is egal to base VL of the item -->
<#assign quantity_in_base_lv_RP_Cst = "**quantity_in_base_lv**" > <#assign quantity_in_base_lv_RP_Cst = "**quantity_in_base_lv**" >
<#assign rfx_date_format_default = "yyyy-MM-dd" > <#assign rfx_date_format_default = "yyyy-MM-dd" >
<#assign length_unit_KV_rfx = {"MET":"MILLIMETER","CM":"CENTIMETER","MM":"METER","DM":"DECIMETER","KM":"KILOMETER","MIL":"MILE","YAR":"YARD","INC":"INCH","FT":"FOOT"}> <#assign length_unit_KV_rfx = {"MET":"MILLIMETER","CM":"CENTIMETER","MM":"METER","DM":"DECIMETER","KM":"KILOMETER","MIL":"MILE","YAR":"YARD","INC":"INCH","FT":"FOOT"}>
<#assign weight_unit_KV_rfx = {"GR":"GRAMME","DG":"DECIGRAM","KG":"KILOGRAM","TON":"TONNE","OCE":"ONCE","LTO":"LONG_TON","STO":"SHORT_TON","PND":"POUND"}> <#assign weight_unit_KV_rfx = {"GR":"GRAMME","DG":"DECIGRAM","KG":"KILOGRAM","TON":"TONNE","OCE":"ONCE","LTO":"LONG_TON","STO":"SHORT_TON","PND":"POUND"}>
<#assign area_unit_KV_rfx = {"MM²":"SQUARE_MILLIMETER","CM²":"SQUARE_CENTIMETER","DM²":"SQUARE_DECIMETER","":"SQUARE_METER","SQI":"SQUARE_INCH","SQF":"SQUARE_FOOT","SQY":"SQUARE_YARD"}> <#assign area_unit_KV_rfx = {"MM²":"SQUARE_MILLIMETER","CM²":"SQUARE_CENTIMETER","DM²":"SQUARE_DECIMETER","":"SQUARE_METER","SQI":"SQUARE_INCH","SQF":"SQUARE_FOOT","SQY":"SQUARE_YARD"}>
@ -16,20 +16,20 @@
<#assign temperature_unit_KV_rfx = {"° C":"CELSIUS","° F":"FAHRENHEIT"}> <#assign temperature_unit_KV_rfx = {"° C":"CELSIUS","° F":"FAHRENHEIT"}>
<#assign length_unit_rfx = length_unit_KV_rfx["CM"]!"CENTIMETER"> <#assign length_unit_rfx = length_unit_KV_rfx["CM"]!"CENTIMETER">
<#assign distance_unit_rfx = length_unit_KV_rfx["MET"]!"CENTIMETER"> <#assign distance_unit_rfx = length_unit_KV_rfx["MET"]!"CENTIMETER">
<#assign transport_distance_unit_rfx = length_unit_KV_rfx["KM"]!"CENTIMETER"> <#assign transport_distance_unit_rfx = length_unit_KV_rfx["KM"]!"CENTIMETER">
<#assign weight_unit_rfx = weight_unit_KV_rfx["KG"]!"KILOGRAM"> <#assign weight_unit_rfx = weight_unit_KV_rfx["KG"]!"KILOGRAM">
<#assign area_unit_rfx = area_unit_KV_rfx[""]!"SQUARE_METER"> <#assign area_unit_rfx = area_unit_KV_rfx[""]!"SQUARE_METER">
<#assign volume_unit_rfx = volume_unit_KV_rfx["DM³"]!"CUBIC_DECIMETER"> <#assign volume_unit_rfx = volume_unit_KV_rfx["DM³"]!"CUBIC_DECIMETER">
<#assign number_of_litres_unit_rfx = volume_unit_KV_rfx["LIT"]!"CUBIC_DECIMETER"> <#assign number_of_litres_unit_rfx = volume_unit_KV_rfx["LIT"]!"CUBIC_DECIMETER">
<#assign time_zone_rfx = "Europe/Paris"!"UTC">
<#assign time_zone_offset_rfx = "+02:00"!"+00:00">
<#assign text_language_rfx = "fr"!"en">
<#assign time_zone_rfx = "Europe/Paris"!"UTC">
<#assign time_zone_offset_rfx = "+02:00"!"+00:00">
<#assign text_language_rfx = "fr"!"en">

View File

@ -11,50 +11,50 @@
<#assign organisationRP = organisation> <#assign organisationRP = organisation>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign reflexStockPicturesInterface = JsonUtil.jsonToMap(dataRfx)> <#assign reflexStockPicturesInterface = JsonUtil.jsonToMap(dataRfx)>
<#-- idSnapshot MUST BE UNIQUE regardless of the number of messages in the stock image --> <#-- idSnapshot MUST BE UNIQUE regardless of the number of messages in the stock image -->
<#if cloudEventMsg.messageSet??> <#if cloudEventMsg.messageSet??>
<#assign idSnapshot = cloudEventMsg.messageSet /> <#assign idSnapshot = cloudEventMsg.messageSet />
<#else> <#else>
<#assign idSnapshot = cloudEventMsg.id /> <#assign idSnapshot = cloudEventMsg.id />
</#if> </#if>
<#list reflexStockPicturesInterface.detailled_stock_list as stock> <#list reflexStockPicturesInterface.detailled_stock_list as stock>
<#if stock.stock_type_code != "200"> <#if stock.stock_type_code != "200">
<#stop "stock type different from 200"> <#stop "stock type different from 200">
<#break> <#break>
</#if> </#if>
</#list> </#list>
[ [
{ {
<#if sum_elt??> <#if sum_elt??>
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorSnapshotCompleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorSnapshotCompleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HfDtlStockLs_ActorSnapshotCompleted.ftl"> <#include "RFXtoRP_HfDtlStockLs_ActorSnapshotCompleted.ftl">
<#else> <#else>
<#assign apiReflexPlatformID = ApiReflexPlatformID.StockSnapshotted> <#assign apiReflexPlatformID = ApiReflexPlatformID.StockSnapshotted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HfDtlStockLs_StockSnapshotted.ftl"> <#include "RFXtoRP_HfDtlStockLs_StockSnapshotted.ftl">
</#if> </#if>
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#stop "event not supported"> <#stop "event not supported">
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,27 +1,27 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
[ [
<#list reflexStockPicturesInterface.detailled_stock_list as stock> <#list reflexStockPicturesInterface.detailled_stock_list as stock>
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${stock.physical_depot_code}" "RefID": "${stock.physical_depot_code}"
}, },
"Payload": { "Payload": {
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) /> <#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
"Snapshot": { "Snapshot": {
"EndDateTime": { "EndDateTime": {
"DateTime": "${generation_date}", "DateTime": "${generation_date}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
}, },
"ID": "${stock.physical_depot_code}-${idSnapshot}", "ID": "${stock.physical_depot_code}-${idSnapshot}",
"MessageNb": ${sum_elt} "MessageNb": ${sum_elt}
} }
} }
} }
<#break> <#break>
</#list> </#list>
] ]

View File

@ -1,38 +1,38 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
[ [
<#list reflexStockPicturesInterface.detailled_stock_list as stock> <#list reflexStockPicturesInterface.detailled_stock_list as stock>
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"Payload": { "Payload": {
"ActorID": "${stock.physical_depot_code}", "ActorID": "${stock.physical_depot_code}",
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) /> <#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
"Snapshot": { "Snapshot": {
"DateTime": { "DateTime": {
"DateTime": "${generation_date}", "DateTime": "${generation_date}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
}, },
"ID": "${stock.physical_depot_code}-${idSnapshot}", "ID": "${stock.physical_depot_code}-${idSnapshot}",
"Quantity": "Quantity":
{ {
"Value" : "${stock.quantity_in_base_lvs!"0"}", "Value" : "${stock.quantity_in_base_lvs!"0"}",
"LVID": "${quantity_in_base_lv_RP_Cst}" "LVID": "${quantity_in_base_lv_RP_Cst}"
} }
}, },
"Goods": { "Goods": {
"ItemID": "${stock.item_code}", "ItemID": "${stock.item_code}",
"LVBranchID": "${stock.item_logistical_variant_code}", "LVBranchID": "${stock.item_logistical_variant_code}",
<#assign priority_date = stock.priority_date?datetime(rfx_date_format_default)?iso_utc /> <#assign priority_date = stock.priority_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate" : "${priority_date}", "PriorityDate" : "${priority_date}",
<#-- Segmentation keys inclusion --> <#-- Segmentation keys inclusion -->
<#include "RFXtoRP_HfDtlStockLs_StockSnapshotted_SegmentationKeys.ftl"> <#include "RFXtoRP_HfDtlStockLs_StockSnapshotted_SegmentationKeys.ftl">
} }
} }
}<#sep>,</#sep> }<#sep>,</#sep>
</#list> </#list>
] ]

View File

@ -2,23 +2,23 @@
<#-- use protobuf of class HfDtlStockLs to find Reflex WMS fields names --> <#-- use protobuf of class HfDtlStockLs to find Reflex WMS fields names -->
<#--"SegmentationKeys": [ <#--"SegmentationKeys": [
{ {
"Key": "BatchNumber", "Key": "BatchNumber",
<#if stock.batch_1 == ""> <#if stock.batch_1 == "">
"Value": { "String" : "no batch"} "Value": { "String" : "no batch"}
<#else> <#else>
"Value": { "String" : "${stock.batch_1}"} "Value": { "String" : "${stock.batch_1}"}
</#if> </#if>
}, },
{ {
"Key": "Grade", "Key": "Grade",
"Value": { "String" : "${SegmentationKeys_KV[stock.grade_code]!Default_Value_Grade_SegmentationKey}"} "Value": { "String" : "${SegmentationKeys_KV[stock.grade_code]!Default_Value_Grade_SegmentationKey}"}
}, },
{ {
"Key": "Owner", "Key": "Owner",
"Value": { "String" : "${stock.owner_code}"} "Value": { "String" : "${stock.owner_code}"}
} }
], ],
--> -->
"SegmentationKeys": [ ] "SegmentationKeys": [ ]

View File

@ -11,23 +11,23 @@ those parameters are stored in FTL file HfRpConfig.ftl for later use in some of
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign file = JsonUtil.jsonToMap(dataRfx)> <#assign file = JsonUtil.jsonToMap(dataRfx)>
<#include "RFXtoRP_RfxConfigurationRp.ftl"> <#include "RFXtoRP_RfxConfigurationRp.ftl">
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#stop "deletion of config not supported"> <#stop "deletion of config not supported">
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -10,37 +10,37 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign carrier = JsonUtil.jsonToMap(dataRfx)> <#assign carrier = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorCreated> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorCreated>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaCarrier_ActorCreated.ftl"> <#include "RFXtoRP_HsaCarrier_ActorCreated.ftl">
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************************* --> <#-- *********************************************** Action = DELETE ******************************* -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign carrier = JsonUtil.jsonToMap(dataRfx)> <#assign carrier = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorDeleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorDeleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaCarrier_ActorDeleted.ftl"> <#include "RFXtoRP_HsaCarrier_ActorDeleted.ftl">
} }
] ]
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,40 +1,40 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${carrier.carrier_code}" "RefID": "${carrier.carrier_code}"
}, },
"Payload": { "Payload": {
"Name": "${carrier.carrier_designation}", "Name": "${carrier.carrier_designation}",
"ManagedStock": false, "ManagedStock": false,
"IsCarrier": true, "IsCarrier": true,
<#-- ***Partner ID could be added here *** --> <#-- ***Partner ID could be added here *** -->
<#-- "PartnerID": "${}", --> <#-- "PartnerID": "${}", -->
<#-- <#--
<#include "RFXtoRP_HsaCarrier_ActorCreated_Metadata.ftl">, <#include "RFXtoRP_HsaCarrier_ActorCreated_Metadata.ftl">,
--> -->
"Address": "Address":
{ {
"StreetAddressOne" : "${carrier.address.address_1}", "StreetAddressOne" : "${carrier.address.address_1}",
"StreetAddressTwo" : "${carrier.address.address_2}", "StreetAddressTwo" : "${carrier.address.address_2}",
<#if carrier.address.address_3?length &lt; 10> <#if carrier.address.address_3?length &lt; 10>
"PostalCode" : "${carrier.address.address_3?trim}", "PostalCode" : "${carrier.address.address_3?trim}",
<#else> <#else>
"PostalCode" : "${carrier.address.address_3?substring(0,9)?trim}", "PostalCode" : "${carrier.address.address_3?substring(0,9)?trim}",
</#if> </#if>
<#if carrier.address.address_4?length &lt; 14> <#if carrier.address.address_4?length &lt; 14>
"CountryCode" : "" "CountryCode" : ""
<#else> <#else>
"CountryCode" : "${carrier.address.address_4?substring(10,13)?trim}" "CountryCode" : "${carrier.address.address_4?substring(10,13)?trim}"
</#if> </#if>
}, },
"Typology": "TYPOLOGY_CARRIER" "Typology": "TYPOLOGY_CARRIER"
} }
} }
] ]

View File

@ -2,4 +2,4 @@
<#-- use protobuf of class HsaCarrier to find Reflex WMS fields names --> <#-- use protobuf of class HsaCarrier to find Reflex WMS fields names -->
"MetaData": [ ] "MetaData": [ ]

View File

@ -1,12 +1,12 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${carrier.carrier_code}" "RefID": "${carrier.carrier_code}"
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -10,37 +10,37 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign actor = JsonUtil.jsonToMap(dataRfx)> <#assign actor = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorCreated> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorCreated>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaCons_ActorCreated.ftl"> <#include "RFXtoRP_HsaCons_ActorCreated.ftl">
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign actor = JsonUtil.jsonToMap(dataRfx)> <#assign actor = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorDeleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorDeleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaCons_ActorDeleted.ftl"> <#include "RFXtoRP_HsaCons_ActorDeleted.ftl">
} }
] ]
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,43 +1,43 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${actor.code}" "RefID": "${actor.code}"
}, },
"Payload": { "Payload": {
"Name": "${actor.designation}", "Name": "${actor.designation}",
"ManagedStock": false, "ManagedStock": false,
"IsCarrier": false, "IsCarrier": false,
<#-- ***Partner ID could be added here *** --> <#-- ***Partner ID could be added here *** -->
<#-- "PartnerID": "${}", --> <#-- "PartnerID": "${}", -->
<#-- <#--
<#include "RFXtoRP_HsaCons_ActorCreated_Metadata.ftl"> <#include "RFXtoRP_HsaCons_ActorCreated_Metadata.ftl">
--> -->
"Address": "Address":
{ {
<#if actor.address.address_3?length &gt; 10> <#if actor.address.address_3?length &gt; 10>
"City" : "${actor.address.address_3?substring(10)?trim}", "City" : "${actor.address.address_3?substring(10)?trim}",
</#if> </#if>
"StreetAddressOne" : "${actor.address.address_1}", "StreetAddressOne" : "${actor.address.address_1}",
"StreetAddressTwo" : "${actor.address.address_2}", "StreetAddressTwo" : "${actor.address.address_2}",
<#if actor.address.address_3?length &lt; 10> <#if actor.address.address_3?length &lt; 10>
"PostalCode" : "${actor.address.address_3?trim}", "PostalCode" : "${actor.address.address_3?trim}",
<#else> <#else>
"PostalCode" : "${actor.address.address_3?substring(0,9)?trim}", "PostalCode" : "${actor.address.address_3?substring(0,9)?trim}",
</#if> </#if>
<#if actor.address.address_4?length &lt; 14> <#if actor.address.address_4?length &lt; 14>
"CountryCode" : "" "CountryCode" : ""
<#else> <#else>
"CountryCode" : "${actor.address.address_4?substring(10,13)?trim}" "CountryCode" : "${actor.address.address_4?substring(10,13)?trim}"
</#if> </#if>
}, },
"Typology": "TYPOLOGY_UNKNOWN" "Typology": "TYPOLOGY_UNKNOWN"
} }
} }
] ]

View File

@ -2,4 +2,4 @@
<#-- use protobuf of class HsaCons to find Reflex WMS fields names --> <#-- use protobuf of class HsaCons to find Reflex WMS fields names -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -1,12 +1,12 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${actor.code}" "RefID": "${actor.code}"
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -5,71 +5,71 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign reflexMvtStockInterface = JsonUtil.jsonToMap(dataRfx)> <#assign reflexMvtStockInterface = JsonUtil.jsonToMap(dataRfx)>
<#-- exclusion of the cases of an IPG move with quantity = 0 (weight modification) --> <#-- exclusion of the cases of an IPG move with quantity = 0 (weight modification) -->
<#if reflexMvtStockInterface.ipg_move_quantity_in_base_lvs != 0> <#if reflexMvtStockInterface.ipg_move_quantity_in_base_lvs != 0>
<#-- IPG moves translated into Stock moves --> <#-- IPG moves translated into Stock moves -->
<#if reflexMvtStockInterface.ipg_move_type == "130" || <#if reflexMvtStockInterface.ipg_move_type == "130" ||
reflexMvtStockInterface.ipg_move_type == "200" || reflexMvtStockInterface.ipg_move_type == "200" ||
reflexMvtStockInterface.ipg_move_type == "210" || reflexMvtStockInterface.ipg_move_type == "210" ||
reflexMvtStockInterface.ipg_move_type == "220" || reflexMvtStockInterface.ipg_move_type == "220" ||
reflexMvtStockInterface.ipg_move_type == "230" || reflexMvtStockInterface.ipg_move_type == "230" ||
reflexMvtStockInterface.ipg_move_type == "240" || reflexMvtStockInterface.ipg_move_type == "240" ||
reflexMvtStockInterface.ipg_move_type == "260" || reflexMvtStockInterface.ipg_move_type == "260" ||
reflexMvtStockInterface.ipg_move_type == "290" || reflexMvtStockInterface.ipg_move_type == "290" ||
reflexMvtStockInterface.ipg_move_type == "300" || reflexMvtStockInterface.ipg_move_type == "300" ||
reflexMvtStockInterface.ipg_move_type == "400" || reflexMvtStockInterface.ipg_move_type == "400" ||
reflexMvtStockInterface.ipg_move_type == "410" || reflexMvtStockInterface.ipg_move_type == "410" ||
reflexMvtStockInterface.ipg_move_type == "420" reflexMvtStockInterface.ipg_move_type == "420"
> >
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.StockMoved> <#assign apiReflexPlatformID = ApiReflexPlatformID.StockMoved>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaIpgMove_StockMoved.ftl"> <#include "RFXtoRP_HsaIpgMove_StockMoved.ftl">
} }
] ]
<#else> <#else>
<#-- IPG moves translated into goods received (all type of receipt) --> <#-- IPG moves translated into goods received (all type of receipt) -->
<#if reflexMvtStockInterface.ipg_move_type == "100" || <#if reflexMvtStockInterface.ipg_move_type == "100" ||
reflexMvtStockInterface.ipg_move_type == "110" || reflexMvtStockInterface.ipg_move_type == "110" ||
reflexMvtStockInterface.ipg_move_type == "120" reflexMvtStockInterface.ipg_move_type == "120"
> >
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.GoodsReceived> <#assign apiReflexPlatformID = ApiReflexPlatformID.GoodsReceived>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaIpgMove_GoodsReceived.ftl"> <#include "RFXtoRP_HsaIpgMove_GoodsReceived.ftl">
} }
] ]
<#else> <#else>
<#-- Case of IPG move type volontarilly ignored--> <#-- Case of IPG move type volontarilly ignored-->
<#stop "Move type not supported"> <#stop "Move type not supported">
</#if> </#if>
</#if> </#if>
<#else> <#else>
<#-- cases of an IPG move with quantity = 0 (weight modification))--> <#-- cases of an IPG move with quantity = 0 (weight modification))-->
<#stop "move ingored quantity = 0"> <#stop "move ingored quantity = 0">
</#if> </#if>
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#stop "event not supported - Case D "> <#stop "event not supported - Case D ">
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -2,42 +2,42 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
[ [
<#assign receipt_confirmation_datetime = RfxDateTimetoUTC(reflexMvtStockInterface.ipg_move_creation_datetime,time_zone_offset_rfx) /> <#assign receipt_confirmation_datetime = RfxDateTimetoUTC(reflexMvtStockInterface.ipg_move_creation_datetime,time_zone_offset_rfx) />
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${reflexMvtStockInterface.hd_number}" "RefID": "${reflexMvtStockInterface.hd_number}"
}, },
"Payload": { "Payload": {
"ReceivedContents" :[ "ReceivedContents" :[
{ {
"DateTime": { "DateTime": {
"DateTime": "${receipt_confirmation_datetime}", "DateTime": "${receipt_confirmation_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
}, },
"Goods": { "Goods": {
"ItemID": "${reflexMvtStockInterface.item_code}", "ItemID": "${reflexMvtStockInterface.item_code}",
"LVBranchID": "${reflexMvtStockInterface.lv_code}", "LVBranchID": "${reflexMvtStockInterface.lv_code}",
<#assign priority_date = "${Default_date}"?datetime(rfx_date_format_default)?iso_utc /> <#assign priority_date = "${Default_date}"?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${priority_date}", "PriorityDate": "${priority_date}",
<#-- Goods received Segmentation Keys inclusion --> <#-- Goods received Segmentation Keys inclusion -->
<#include "RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl"> <#include "RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl">
}, },
"ExecutionflowID": "R-${reflexMvtStockInterface.receipt_year_number}-${reflexMvtStockInterface.receipt_number}", "ExecutionflowID": "R-${reflexMvtStockInterface.receipt_year_number}-${reflexMvtStockInterface.receipt_number}",
"LineID": "${reflexMvtStockInterface.receipt_line_number}", "LineID": "${reflexMvtStockInterface.receipt_line_number}",
"ActorID": "${reflexMvtStockInterface.physical_depot_code}", "ActorID": "${reflexMvtStockInterface.physical_depot_code}",
"Quantity": { "Quantity": {
"LVID": "${quantity_in_base_lv_RP_Cst}", "LVID": "${quantity_in_base_lv_RP_Cst}",
"Value": ${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs} "Value": ${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs}
} }
} }
] ]
} }
} }
] ]

View File

@ -1,24 +1,24 @@
<#-- use protobuf of class HsaIpgMove to find Reflex WMS fields names --> <#-- use protobuf of class HsaIpgMove to find Reflex WMS fields names -->
<#--"SegmentationKeys": <#--"SegmentationKeys":
[ [
{ {
"Key": "Grade", "Key": "Grade",
"Value": {"String": "${reflexMvtStockInterface.grade_code}"} "Value": {"String": "${reflexMvtStockInterface.grade_code}"}
}, },
{ {
"Key": "Owner", "Key": "Owner",
"Value": {"String": "${reflexMvtStockInterface.owner_code}"} "Value": {"String": "${reflexMvtStockInterface.owner_code}"}
}, },
{ {
"Key": "BatchNumber", "Key": "BatchNumber",
<#if reflexMvtStockInterface.batch_1 == ""> <#if reflexMvtStockInterface.batch_1 == "">
"Value": { "String" : "no batch"} "Value": { "String" : "no batch"}
<#else> <#else>
"Value": { "String" : "${reflexMvtStockInterface.batch_1}"} "Value": { "String" : "${reflexMvtStockInterface.batch_1}"}
</#if> </#if>
} }
], ],
--> -->
"SegmentationKeys": [ ] "SegmentationKeys": [ ]

View File

@ -2,62 +2,62 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign MoveType_KV = {"130":"STOCK_MOVEMENT_TYPE_PRODUCTION", <#assign MoveType_KV = {"130":"STOCK_MOVEMENT_TYPE_PRODUCTION",
"200":"STOCK_MOVEMENT_TYPE_FIX", "200":"STOCK_MOVEMENT_TYPE_FIX",
"210":"STOCK_MOVEMENT_TYPE_FIX", "210":"STOCK_MOVEMENT_TYPE_FIX",
"220":"STOCK_MOVEMENT_TYPE_FIX", "220":"STOCK_MOVEMENT_TYPE_FIX",
"230":"STOCK_MOVEMENT_TYPE_REQUALIFICATION", "230":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
"240":"STOCK_MOVEMENT_TYPE_REQUALIFICATION", "240":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
"260":"STOCK_MOVEMENT_TYPE_REQUALIFICATION", "260":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
"290":"STOCK_MOVEMENT_TYPE_REQUALIFICATION", "290":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
"300":"STOCK_MOVEMENT_TYPE_REQUALIFICATION", "300":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
"400":"STOCK_MOVEMENT_TYPE_FIX", "400":"STOCK_MOVEMENT_TYPE_FIX",
"410":"STOCK_MOVEMENT_TYPE_FIX", "410":"STOCK_MOVEMENT_TYPE_FIX",
"420":"STOCK_MOVEMENT_TYPE_REQUALIFICATION"}> "420":"STOCK_MOVEMENT_TYPE_REQUALIFICATION"}>
<#assign generation_date = RfxDateTimetoUTC(reflexMvtStockInterface.ipg_move_creation_datetime,time_zone_offset_rfx) /> <#assign generation_date = RfxDateTimetoUTC(reflexMvtStockInterface.ipg_move_creation_datetime,time_zone_offset_rfx) />
<#assign ipg_priority_datetime = reflexMvtStockInterface.ipg_priority_date?datetime(rfx_date_format_default)?iso_utc /> <#assign ipg_priority_datetime = reflexMvtStockInterface.ipg_priority_date?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"Payload": { "Payload": {
"Goods": { "Goods": {
"ItemID": "${reflexMvtStockInterface.item_code}", "ItemID": "${reflexMvtStockInterface.item_code}",
"PriorityDate": "${ipg_priority_datetime}", "PriorityDate": "${ipg_priority_datetime}",
<#-- Segmentation keys inclusions --> <#-- Segmentation keys inclusions -->
<#include "RFXtoRP_HsaIpgMove_StockMoved_SegmentationKeys.ftl"> <#include "RFXtoRP_HsaIpgMove_StockMoved_SegmentationKeys.ftl">
"LVBranchID": "${reflexMvtStockInterface.lv_code}" "LVBranchID": "${reflexMvtStockInterface.lv_code}"
}, },
"ActorID": "${reflexMvtStockInterface.physical_depot_code}", "ActorID": "${reflexMvtStockInterface.physical_depot_code}",
"Movement": { "Movement": {
"DateTime": { "DateTime": {
"DateTime": "${generation_date}", "DateTime": "${generation_date}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
}, },
"Author": "ReflexWMS-${reflexMvtStockInterface.ipg_move_creation_user_code}", "Author": "ReflexWMS-${reflexMvtStockInterface.ipg_move_creation_user_code}",
"ExternalMoveRef" : "${reflexMvtStockInterface.ipg_move_year_number} - ${reflexMvtStockInterface.ipg_move_number}", "ExternalMoveRef" : "${reflexMvtStockInterface.ipg_move_year_number} - ${reflexMvtStockInterface.ipg_move_number}",
"Type": "${MoveType_KV[reflexMvtStockInterface.ipg_move_type]!reflexMvtStockInterface.ipg_move_type}", "Type": "${MoveType_KV[reflexMvtStockInterface.ipg_move_type]!reflexMvtStockInterface.ipg_move_type}",
"Reason": "${reflexMvtStockInterface.miscellaneous_receipts_despatches_code}", "Reason": "${reflexMvtStockInterface.miscellaneous_receipts_despatches_code}",
"ExternalInfo" : "${reflexMvtStockInterface.stock_move_reference}", "ExternalInfo" : "${reflexMvtStockInterface.stock_move_reference}",
<#if reflexMvtStockInterface.ipg_move_operation_year_number!= 0> <#if reflexMvtStockInterface.ipg_move_operation_year_number!= 0>
"OperationReference": "${reflexMvtStockInterface.ipg_move_operation_year_number} - ${reflexMvtStockInterface.ipg_move_operation_number}", "OperationReference": "${reflexMvtStockInterface.ipg_move_operation_year_number} - ${reflexMvtStockInterface.ipg_move_operation_number}",
</#if> </#if>
"Quantity": "Quantity":
{ {
"LVID": "${quantity_in_base_lv_RP_Cst}", "LVID": "${quantity_in_base_lv_RP_Cst}",
<#if reflexMvtStockInterface.move_sign == "+"> <#if reflexMvtStockInterface.move_sign == "+">
"Value": ${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs} "Value": ${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs}
<#else> <#else>
"Value": -${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs} "Value": -${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs}
</#if> </#if>
} }
} }
} }
} }
] ]

View File

@ -2,24 +2,24 @@
<#-- use protobuf of class HsaIpgMove to find Reflex WMS fields names --> <#-- use protobuf of class HsaIpgMove to find Reflex WMS fields names -->
<#--"SegmentationKeys": <#--"SegmentationKeys":
[ [
{ {
"Key": "Grade", "Key": "Grade",
"Value": {"String": "${reflexMvtStockInterface.grade_code}"} "Value": {"String": "${reflexMvtStockInterface.grade_code}"}
}, },
{ {
"Key": "Owner", "Key": "Owner",
"Value": {"String": "${reflexMvtStockInterface.owner_code}"} "Value": {"String": "${reflexMvtStockInterface.owner_code}"}
}, },
{ {
"Key": "BatchNumber", "Key": "BatchNumber",
<#if reflexMvtStockInterface.batch_1 == ""> <#if reflexMvtStockInterface.batch_1 == "">
"Value": { "String" : "no batch"} "Value": { "String" : "no batch"}
<#else> <#else>
"Value": { "String" : "${reflexMvtStockInterface.batch_1}"} "Value": { "String" : "${reflexMvtStockInterface.batch_1}"}
</#if> </#if>
} }
], ],
--> -->
"SegmentationKeys": [ ], "SegmentationKeys": [ ],

View File

@ -11,41 +11,41 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign item = JsonUtil.jsonToMap(dataRfx)> <#assign item = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#if item.logistical_variant_list?? > <#if item.logistical_variant_list?? >
<#assign apiReflexPlatformID = ApiReflexPlatformID.ItemCreated> <#assign apiReflexPlatformID = ApiReflexPlatformID.ItemCreated>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaItm_ItemCreated.ftl"> <#include "RFXtoRP_HsaItm_ItemCreated.ftl">
<#else> <#else>
<#stop "no LV for the item"> <#stop "no LV for the item">
</#if> </#if>
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************************** --> <#-- *********************************************** Action = DELETE ******************************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign item = JsonUtil.jsonToMap(dataRfx)> <#assign item = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ItemDeleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ItemDeleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaItm_ItemDeleted.ftl"> <#include "RFXtoRP_HsaItm_ItemDeleted.ftl">
} }
] ]
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -11,46 +11,46 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign lv = JsonUtil.jsonToMap(dataRfx)> <#assign lv = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.LVUpdated> <#assign apiReflexPlatformID = ApiReflexPlatformID.LVUpdated>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaItmLv_LVUpdated.ftl"> <#include "RFXtoRP_HsaItmLv_LVUpdated.ftl">
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#stop "LV deletion not supported" > <#stop "LV deletion not supported" >
<#-- supression LV a décommenter quand API ajouté au connecteur <#-- supression LV a décommenter quand API ajouté au connecteur
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign item = JsonUtil.jsonToMap(dataRfx)> <#assign item = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.LVDeleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.LVDeleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaItmLv_LVRemoved.ftl"> <#include "RFXtoRP_HsaItmLv_LVRemoved.ftl">
} }
] ]
--> -->
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,14 +1,14 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${lv.item_code}" "RefID": "${lv.item_code}"
}, },
"Payload": { "Payload": {
"RemovedLogisticVariant": "${lv.logistical_variant_code} "RemovedLogisticVariant": "${lv.logistical_variant_code}
} }
} }
] ]

View File

@ -1,73 +1,73 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${lv.item_code}" "RefID": "${lv.item_code}"
}, },
"Payload": { "Payload": {
"LogisticVariants": [ "LogisticVariants": [
{ {
"LVID": "${lv.logistical_variant_code}", "LVID": "${lv.logistical_variant_code}",
"Name" : "${lv.lv_type_code}", "Name" : "${lv.lv_type_code}",
<#if lv.id_list??> <#if lv.id_list??>
"Codes": [ "Codes": [
<#list lv.id_list as id> <#list lv.id_list as id>
{ {
"Key": "${id.logistical_variant_ID_type_code}", "Key": "${id.logistical_variant_ID_type_code}",
"Value": "${id.logistical_variant_ID_code}" "Value": "${id.logistical_variant_ID_code}"
}<#sep>,</#sep> }<#sep>,</#sep>
</#list> </#list>
], ],
</#if> </#if>
<#-- LV Metadata inclusion --> <#-- LV Metadata inclusion -->
<#include "RFXtoRP_HsaItmLv_LVUpdated_Metadata.ftl"> <#include "RFXtoRP_HsaItmLv_LVUpdated_Metadata.ftl">
"IsBaseLogisticVariant": ${lv.base_lv}, "IsBaseLogisticVariant": ${lv.base_lv},
<#if lv.base_lv != "true"> <#if lv.base_lv != "true">
"RefLV": "${lv.subpackaging_lv_code}", "RefLV": "${lv.subpackaging_lv_code}",
</#if> </#if>
"QuantityInRefLV": ${lv.quantity_in_subpackaging_lv}, "QuantityInRefLV": ${lv.quantity_in_subpackaging_lv},
"NetWeight": { "NetWeight": {
"Value": ${lv.net_weight}, "Value": ${lv.net_weight},
"Unit": "${weight_unit_rfx}" "Unit": "${weight_unit_rfx}"
}, },
"GrossWeight": { "GrossWeight": {
"Value": ${lv.gross_weight}, "Value": ${lv.gross_weight},
"Unit": "${weight_unit_rfx}" "Unit": "${weight_unit_rfx}"
}, },
"Volume": { "Volume": {
"Value": ${lv.volume}, "Value": ${lv.volume},
"Unit": "${volume_unit_rfx}" "Unit": "${volume_unit_rfx}"
}, },
"Height": { "Height": {
"Value": ${lv.height}, "Value": ${lv.height},
"Unit": "${length_unit_rfx}" "Unit": "${length_unit_rfx}"
}, },
"Width": { "Width": {
"Value": ${lv.width}, "Value": ${lv.width},
"Unit": "${length_unit_rfx}" "Unit": "${length_unit_rfx}"
}, },
"Length": { "Length": {
"Value": ${lv.depth}, "Value": ${lv.depth},
"Unit": "${length_unit_rfx}" "Unit": "${length_unit_rfx}"
}, },
<#if lv.packaging_lv == "true"> <#if lv.packaging_lv == "true">
"BranchIDs": ["${lv.logistical_variant_code}"] "BranchIDs": ["${lv.logistical_variant_code}"]
<#else> <#else>
"BranchIDs": [] "BranchIDs": []
</#if> </#if>
} }
] ]
} }
} }
] ]

View File

@ -1,4 +1,4 @@
<#-- use protobuf of class HsaItmLv to find Reflex Wms fields names --> <#-- use protobuf of class HsaItmLv to find Reflex Wms fields names -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -1,105 +1,105 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${item.item_code}" "RefID": "${item.item_code}"
}, },
"Payload": { "Payload": {
"DescriptionsByLanguage": [{ "DescriptionsByLanguage": [{
"ShortDescription": "${item.short_designation?json_string}", "ShortDescription": "${item.short_designation?json_string}",
"LongDescription": "${item.designation?json_string}", "LongDescription": "${item.designation?json_string}",
"TechnicalDetails": "${item.item_description?json_string}", "TechnicalDetails": "${item.item_description?json_string}",
"LanguageCodeISO6391": "${text_language_rfx}" "LanguageCodeISO6391": "${text_language_rfx}"
} }
], ],
<#-- /!\ table de correspondance à faire disparaitre /!\ --> <#-- /!\ table de correspondance à faire disparaitre /!\ -->
<#assign ExpiryConstraint = {"REC":"PRODUCTION_DATE", "DDM":"BEST_BEFORE_DATE", "DLC":"USE_BY_DATE"}/> <#assign ExpiryConstraint = {"REC":"PRODUCTION_DATE", "DDM":"BEST_BEFORE_DATE", "DLC":"USE_BY_DATE"}/>
"ExpiryConstraint": { "ExpiryConstraint": {
"Type": "${ExpiryConstraint[item.expiry_group_code]!"UNKNOWN_DATE"}" "Type": "${ExpiryConstraint[item.expiry_group_code]!"UNKNOWN_DATE"}"
}, },
<#-- Item metadata inclusion --> <#-- Item metadata inclusion -->
<#include "RFXtoRP_HsaItm_ItemCreated_ItemMetadata.ftl"> <#include "RFXtoRP_HsaItm_ItemCreated_ItemMetadata.ftl">
<#-- Item Photo URI could be added here --> <#-- Item Photo URI could be added here -->
<#--"PhotoURI": " ", --> <#--"PhotoURI": " ", -->
<#-- Loop for the Logistical Variants - LV --> <#-- Loop for the Logistical Variants - LV -->
<#if item.logistical_variant_list??> <#if item.logistical_variant_list??>
"LogisticVariants": [ "LogisticVariants": [
<#list item.logistical_variant_list as logistical_variant> <#list item.logistical_variant_list as logistical_variant>
{ {
"LVID": "${logistical_variant.logistical_variant_code}", "LVID": "${logistical_variant.logistical_variant_code}",
"Name" : "${logistical_variant.lv_type_code}", "Name" : "${logistical_variant.lv_type_code}",
<#if logistical_variant.id_list??> <#if logistical_variant.id_list??>
"Codes": [ "Codes": [
<#list logistical_variant.id_list as id> <#list logistical_variant.id_list as id>
{ {
"Key": "${id.logistical_variant_ID_type_code}", "Key": "${id.logistical_variant_ID_type_code}",
"Value": "${id.logistical_variant_ID_code}" "Value": "${id.logistical_variant_ID_code}"
}<#sep>,</#sep> }<#sep>,</#sep>
</#list> </#list>
], ],
</#if> </#if>
<#-- LV Metadata inclusion --> <#-- LV Metadata inclusion -->
<#if logistical_variant.additional_data_value_list??> <#if logistical_variant.additional_data_value_list??>
<#include "RFXtoRP_HsaItm_ItemCreated_LVMetadata.ftl"> <#include "RFXtoRP_HsaItm_ItemCreated_LVMetadata.ftl">
</#if> </#if>
"IsBaseLogisticVariant": ${logistical_variant.base_lv}, "IsBaseLogisticVariant": ${logistical_variant.base_lv},
<#if logistical_variant.base_lv != "true"> <#if logistical_variant.base_lv != "true">
"RefLV": "${logistical_variant.subpackaging_lv_code}", "RefLV": "${logistical_variant.subpackaging_lv_code}",
</#if> </#if>
"QuantityInRefLV": ${logistical_variant.quantity_in_subpackaging_lv}, "QuantityInRefLV": ${logistical_variant.quantity_in_subpackaging_lv},
"NetWeight": { "NetWeight": {
"Value": ${logistical_variant.net_weight}, "Value": ${logistical_variant.net_weight},
"Unit": "${weight_unit_rfx}" "Unit": "${weight_unit_rfx}"
}, },
"GrossWeight": { "GrossWeight": {
"Value": ${logistical_variant.gross_weight}, "Value": ${logistical_variant.gross_weight},
"Unit": "${weight_unit_rfx}" "Unit": "${weight_unit_rfx}"
}, },
"Volume": { "Volume": {
"Value": ${logistical_variant.volume}, "Value": ${logistical_variant.volume},
"Unit": "${volume_unit_rfx}" "Unit": "${volume_unit_rfx}"
}, },
"Height": { "Height": {
"Value": ${logistical_variant.height}, "Value": ${logistical_variant.height},
"Unit": "${length_unit_rfx}" "Unit": "${length_unit_rfx}"
}, },
"Width": { "Width": {
"Value": ${logistical_variant.width}, "Value": ${logistical_variant.width},
"Unit": "${length_unit_rfx}" "Unit": "${length_unit_rfx}"
}, },
"Length": { "Length": {
"Value": ${logistical_variant.depth}, "Value": ${logistical_variant.depth},
"Unit": "${length_unit_rfx}" "Unit": "${length_unit_rfx}"
}, },
<#if logistical_variant.packaging_lv == "true"> <#if logistical_variant.packaging_lv == "true">
"BranchIDs": ["${logistical_variant.logistical_variant_code}"] "BranchIDs": ["${logistical_variant.logistical_variant_code}"]
<#else> <#else>
"BranchIDs": [] "BranchIDs": []
</#if> </#if>
} }
<#sep>,</#sep> <#sep>,</#sep>
</#list> </#list>
] ]
</#if> </#if>
<#-- End of LV loop --> <#-- End of LV loop -->
} }
} }
] ]

View File

@ -2,4 +2,4 @@
<#-- use protobuf of class HsaItm to find Reflex Wms fields names --> <#-- use protobuf of class HsaItm to find Reflex Wms fields names -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -2,4 +2,4 @@
<#-- use protobuf of class HsaItm to find Reflex Wms fields names --> <#-- use protobuf of class HsaItm to find Reflex Wms fields names -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -1,12 +1,12 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${item.item_code}" "RefID": "${item.item_code}"
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -10,88 +10,88 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign preparationStatusInterface = JsonUtil.jsonToMap(dataRfx)> <#assign preparationStatusInterface = JsonUtil.jsonToMap(dataRfx)>
[ [
<#-- <#--
**Pick batch runned (100) ** **Pick batch runned (100) **
<#if preparationStatusInterface.preparation_status_type == "100" && <#if preparationStatusInterface.preparation_status_type == "100" &&
(preparationStatusInterface.preparation_status_code == "200" > (preparationStatusInterface.preparation_status_code == "200" >
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationStarted> <#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationStarted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaProStatus_PreparationExpecteded.ftl"> <#include "RFXtoRP_HsaProStatus_PreparationExpecteded.ftl">
} }
<#else> <#else>
--> -->
<#-- ** Collection started (300) and Preparation in progress (400)** --> <#-- ** Collection started (300) and Preparation in progress (400)** -->
<#if preparationStatusInterface.preparation_status_type == "100" && <#if preparationStatusInterface.preparation_status_type == "100" &&
(preparationStatusInterface.preparation_status_code == "300" || (preparationStatusInterface.preparation_status_code == "300" ||
preparationStatusInterface.preparation_status_code == "400") > preparationStatusInterface.preparation_status_code == "400") >
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationStarted> <#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationStarted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaProStatus_PreparationStarted.ftl"> <#include "RFXtoRP_HsaProStatus_PreparationStarted.ftl">
} }
<#else> <#else>
<#-- **Preparation to package (500) and preparationcompleted (550)** --> <#-- **Preparation to package (500) and preparationcompleted (550)** -->
<#if preparationStatusInterface.preparation_status_type == "100" && <#if preparationStatusInterface.preparation_status_type == "100" &&
(preparationStatusInterface.preparation_status_code == "500" || (preparationStatusInterface.preparation_status_code == "500" ||
preparationStatusInterface.preparation_status_code == "550")> preparationStatusInterface.preparation_status_code == "550")>
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationCompleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationCompleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaProStatus_PreparationCompleted.ftl"> <#include "RFXtoRP_HsaProStatus_PreparationCompleted.ftl">
} }
<#else> <#else>
<#-- ****Preparation dispatched (600)** --> <#-- ****Preparation dispatched (600)** -->
<#if preparationStatusInterface.preparation_status_type == "100" && <#if preparationStatusInterface.preparation_status_type == "100" &&
preparationStatusInterface.preparation_status_code == "600" > preparationStatusInterface.preparation_status_code == "600" >
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowTransportStarted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowTransportStarted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaProStatus_TransportStarted.ftl"> <#include "RFXtoRP_HsaProStatus_TransportStarted.ftl">
} }
<#else> <#else>
<#-- ****Preparation cancelled (650)**** --> <#-- ****Preparation cancelled (650)**** -->
<#if preparationStatusInterface.preparation_status_type == "100" && <#if preparationStatusInterface.preparation_status_type == "100" &&
preparationStatusInterface.preparation_status_code == "650" > preparationStatusInterface.preparation_status_code == "650" >
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaProStatus_ExecutionflowCancelled.ftl"> <#include "RFXtoRP_HsaProStatus_ExecutionflowCancelled.ftl">
} }
<#else> <#else>
<#stop "Reflex WMS status not supported on Reflex Platform"> <#stop "Reflex WMS status not supported on Reflex Platform">
</#if> </#if>
</#if> </#if>
</#if> </#if>
</#if> </#if>
<#-- <#--
</#if> </#if>
--> -->
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#stop "event not supported (case D)"> <#stop "event not supported (case D)">
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,20 +1,20 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${preparationStatusInterface.preparation_order_originator_reference}", "RefID": "${preparationStatusInterface.preparation_order_originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": { "Payload": {
} }
} }
] ]

View File

@ -2,19 +2,19 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${preparationStatusInterface.preparation_order_originator_reference}", "RefID": "${preparationStatusInterface.preparation_order_originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -2,19 +2,19 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${preparationStatusInterface.preparation_order_originator_reference}", "RefID": "${preparationStatusInterface.preparation_order_originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -2,19 +2,19 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${preparationStatusInterface.preparation_order_originator_reference}", "RefID": "${preparationStatusInterface.preparation_order_originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -2,19 +2,19 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = preparationStatusInterface.preparation_status_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${preparationStatusInterface.preparation_order_originator_reference}", "RefID": "${preparationStatusInterface.preparation_order_originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -10,37 +10,37 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign actor = JsonUtil.jsonToMap(dataRfx)> <#assign actor = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorCreated> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorCreated>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaSup_ActorCreated.ftl"> <#include "RFXtoRP_HsaSup_ActorCreated.ftl">
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign actor = JsonUtil.jsonToMap(dataRfx)> <#assign actor = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorDeleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorDeleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsaSup_ActorDeleted.ftl"> <#include "RFXtoRP_HsaSup_ActorDeleted.ftl">
} }
] ]
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,43 +1,43 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${actor.code}" "RefID": "${actor.code}"
}, },
"Payload": { "Payload": {
"Name": "${actor.designation}", "Name": "${actor.designation}",
"ManagedStock": false, "ManagedStock": false,
"IsCarrier": false, "IsCarrier": false,
<#-- ***Partner ID could be added here *** --> <#-- ***Partner ID could be added here *** -->
<#-- "PartnerID": "${}", --> <#-- "PartnerID": "${}", -->
<#-- <#--
<#include "RFXtoRP_HsaSup_ActorCreated_Metadata.ftl"> <#include "RFXtoRP_HsaSup_ActorCreated_Metadata.ftl">
--> -->
"Address": "Address":
{ {
<#if actor.optional_attributes.address_3?length &gt; 10> <#if actor.optional_attributes.address_3?length &gt; 10>
"City" : "${actor.optional_attributes.address_3?substring(10)?trim}", "City" : "${actor.optional_attributes.address_3?substring(10)?trim}",
</#if> </#if>
"StreetAddressOne" : "${actor.optional_attributes.address_1}", "StreetAddressOne" : "${actor.optional_attributes.address_1}",
"StreetAddressTwo" : "${actor.optional_attributes.address_2}", "StreetAddressTwo" : "${actor.optional_attributes.address_2}",
<#if actor.optional_attributes.address_3?length &lt; 10> <#if actor.optional_attributes.address_3?length &lt; 10>
"PostalCode" : "${actor.optional_attributes.address_3?trim}", "PostalCode" : "${actor.optional_attributes.address_3?trim}",
<#else> <#else>
"PostalCode" : "${actor.optional_attributes.address_3?substring(0,9)?trim}", "PostalCode" : "${actor.optional_attributes.address_3?substring(0,9)?trim}",
</#if> </#if>
<#if actor.optional_attributes.address_4?length &lt; 14> <#if actor.optional_attributes.address_4?length &lt; 14>
"CountryCode" : "" "CountryCode" : ""
<#else> <#else>
"CountryCode" : "${actor.optional_attributes.address_4?substring(10,13)?trim}" "CountryCode" : "${actor.optional_attributes.address_4?substring(10,13)?trim}"
</#if> </#if>
}, },
"Typology": "TYPOLOGY_UNKNOWN" "Typology": "TYPOLOGY_UNKNOWN"
} }
} }
] ]

View File

@ -2,4 +2,4 @@
<#-- use protobuf of class HsaSup to find Reflex WMS fields names --> <#-- use protobuf of class HsaSup to find Reflex WMS fields names -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -1,12 +1,12 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${actor.code}" "RefID": "${actor.code}"
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -10,37 +10,37 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign depot = JsonUtil.jsonToMap(dataRfx)> <#assign depot = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorCreated> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorCreated>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrDepot_ActorCreated.ftl"> <#include "RFXtoRP_HsrDepot_ActorCreated.ftl">
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE *************************** --> <#-- *********************************************** Action = DELETE *************************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign depot = JsonUtil.jsonToMap(dataRfx)> <#assign depot = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ActorDeleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ActorDeleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrDepot_ActorDeleted.ftl"> <#include "RFXtoRP_HsrDepot_ActorDeleted.ftl">
} }
] ]
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,39 +1,39 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${depot.physical_depot_code}" "RefID": "${depot.physical_depot_code}"
}, },
"Payload": { "Payload": {
"Name": "${depot.physical_depot_designation}", "Name": "${depot.physical_depot_designation}",
"ManagedStock": true, "ManagedStock": true,
"IsCarrier": false, "IsCarrier": false,
<#-- ***Partner ID could be added here *** --> <#-- ***Partner ID could be added here *** -->
<#-- "PartnerID": "${}", --> <#-- "PartnerID": "${}", -->
<#-- <#--
<#include "RFXtoRP_HsrDepot_ActorCreated_Metadata.ftl"> <#include "RFXtoRP_HsrDepot_ActorCreated_Metadata.ftl">
--> -->
"Address": "Address":
{ {
"StreetAddressOne" : "${depot.physical_depot_address.address_1}", "StreetAddressOne" : "${depot.physical_depot_address.address_1}",
"StreetAddressTwo" : "${depot.physical_depot_address.address_2}", "StreetAddressTwo" : "${depot.physical_depot_address.address_2}",
<#if depot.physical_depot_address.address_3?length &lt; 10> <#if depot.physical_depot_address.address_3?length &lt; 10>
"PostalCode" : "${depot.physical_depot_address.address_3?trim}", "PostalCode" : "${depot.physical_depot_address.address_3?trim}",
<#else> <#else>
"PostalCode" : "${depot.physical_depot_address.address_3?substring(0,9)?trim}", "PostalCode" : "${depot.physical_depot_address.address_3?substring(0,9)?trim}",
</#if> </#if>
<#if depot.physical_depot_address.address_4?length &lt; 14> <#if depot.physical_depot_address.address_4?length &lt; 14>
"CountryCode" : "" "CountryCode" : ""
<#else> <#else>
"CountryCode" : "${depot.physical_depot_address.address_4?substring(10,13)?trim}" "CountryCode" : "${depot.physical_depot_address.address_4?substring(10,13)?trim}"
</#if> </#if>
} }
} }
} }
] ]

View File

@ -2,4 +2,4 @@
<#-- use protobuf of class HsrDepot to find Reflex WMS fields names --> <#-- use protobuf of class HsrDepot to find Reflex WMS fields names -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -1,12 +1,12 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${depot.physical_depot_code}" "RefID": "${depot.physical_depot_code}"
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -10,40 +10,40 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#--<#case "U"> <#--<#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign preparationOrder = JsonUtil.jsonToMap(dataRfx)> <#assign preparationOrder = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.GoodsPrepared> <#assign apiReflexPlatformID = ApiReflexPlatformID.GoodsPrepared>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrPrepa_GoodsPrepared.ftl"> <#include "RFXtoRP_HsrPrepa_GoodsPrepared.ftl">
}, },
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitDispatched> <#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitDispatched>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrPrepa_HandlingUnitDispatched.ftl"> <#include "RFXtoRP_HsrPrepa_HandlingUnitDispatched.ftl">
}, },
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowTransportStarted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowTransportStarted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_Hsrprepa_TransportStarted.ftl"> <#include "RFXtoRP_Hsrprepa_TransportStarted.ftl">
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#stop "event not supported (Case D)"> <#stop "event not supported (Case D)">
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,85 +1,85 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
[ [
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line> <#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line>
<#list preparation_line.despatched_ipg_list as despatched_ipg> <#list preparation_line.despatched_ipg_list as despatched_ipg>
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
<#if despatched_ipg.carton_number != "000000000000000000"> <#if despatched_ipg.carton_number != "000000000000000000">
"RefID": "${despatched_ipg.carton_number}" "RefID": "${despatched_ipg.carton_number}"
<#else> <#else>
"RefID": "${despatched_ipg.hd_number}" "RefID": "${despatched_ipg.hd_number}"
</#if> </#if>
}, },
"Payload": { "Payload": {
"Information" :{ "Information" :{
<#if despatched_ipg.carton_number != "000000000000000000"> <#if despatched_ipg.carton_number != "000000000000000000">
"ContainerType": "${despatched_ipg.carton_type_code}" "ContainerType": "${despatched_ipg.carton_type_code}"
<#else> <#else>
"ContainerType": "${despatched_ipg.hd_type_code}" "ContainerType": "${despatched_ipg.hd_type_code}"
</#if> </#if>
}, },
<#-- HU Metadata inclusin inclusion --> <#-- HU Metadata inclusin inclusion -->
<#include "RFXtoRP_HsrPrepa_GoodsPrepared_HUMetadata.ftl"> <#include "RFXtoRP_HsrPrepa_GoodsPrepared_HUMetadata.ftl">
, ,
"PreparedContents" :[ "PreparedContents" :[
{ {
"Goods": { "Goods": {
"ItemID": "${preparation_line.item_code}", "ItemID": "${preparation_line.item_code}",
"LVBranchID": "${preparation_line.item_lv_code}", "LVBranchID": "${preparation_line.item_lv_code}",
<#if (despatched_ipg.ipg_manufacture_date?length != 0) && (despatched_ipg.ipg_manufacture_date?starts_with("00") == false)> <#if (despatched_ipg.ipg_manufacture_date?length != 0) && (despatched_ipg.ipg_manufacture_date?starts_with("00") == false)>
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_manufacture_date) /> --> <#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_manufacture_date) /> -->
<#assign priority_date = despatched_ipg.ipg_manufacture_date?datetime(rfx_date_format_default)?iso_utc /> <#assign priority_date = despatched_ipg.ipg_manufacture_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${priority_date}", "PriorityDate": "${priority_date}",
<#else> <#else>
<#if (despatched_ipg.ipg_receipt_date?length != 0) && (despatched_ipg.ipg_receipt_date?starts_with("00")== false)> <#if (despatched_ipg.ipg_receipt_date?length != 0) && (despatched_ipg.ipg_receipt_date?starts_with("00")== false)>
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_receipt_date) /> --> <#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_receipt_date) /> -->
<#assign priority_date = despatched_ipg.ipg_receipt_date?datetime(rfx_date_format_default)?iso_utc /> <#assign priority_date = despatched_ipg.ipg_receipt_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${priority_date}", "PriorityDate": "${priority_date}",
<#else> <#else>
<#if (despatched_ipg.ipg_best_before_date?length != 0) && (despatched_ipg.ipg_best_before_date?starts_with("00")== false)> <#if (despatched_ipg.ipg_best_before_date?length != 0) && (despatched_ipg.ipg_best_before_date?starts_with("00")== false)>
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_best_before_date) /> --> <#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_best_before_date) /> -->
<#assign priority_date = despatched_ipg.ipg_best_before_date?datetime(rfx_date_format_default)?iso_utc /> <#assign priority_date = despatched_ipg.ipg_best_before_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${priority_date}", "PriorityDate": "${priority_date}",
<#else> <#else>
<#if (despatched_ipg.ipg_sell_by_date?length != 0) && (despatched_ipg.ipg_sell_by_date?starts_with("00")== false)> <#if (despatched_ipg.ipg_sell_by_date?length != 0) && (despatched_ipg.ipg_sell_by_date?starts_with("00")== false)>
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_sell_by_date) /> --> <#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_sell_by_date) /> -->
<#assign priority_date = despatched_ipg.ipg_sell_by_date?datetime(rfx_date_format_default)?iso_utc /> <#assign priority_date = despatched_ipg.ipg_sell_by_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${priority_date}", "PriorityDate": "${priority_date}",
<#else> <#else>
<#if (despatched_ipg.ipg_use_by_date?length != 0) && (despatched_ipg.ipg_use_by_date?starts_with("00")== false)> <#if (despatched_ipg.ipg_use_by_date?length != 0) && (despatched_ipg.ipg_use_by_date?starts_with("00")== false)>
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_use_by_date) /> --> <#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_use_by_date) /> -->
<#assign priority_date = despatched_ipg.ipg_use_by_date?datetime(rfx_date_format_default)?iso_utc /> <#assign priority_date = despatched_ipg.ipg_use_by_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${priority_date}", "PriorityDate": "${priority_date}",
<#else> <#else>
"PriorityDate": "error_date", "PriorityDate": "error_date",
</#if> </#if>
</#if> </#if>
</#if> </#if>
</#if> </#if>
</#if> </#if>
<#-- Segmentation Keys inclusion --> <#-- Segmentation Keys inclusion -->
<#include "RFXtoRP_HsrPrepa_GoodsPrepared_SegmentationKeys.ftl"> <#include "RFXtoRP_HsrPrepa_GoodsPrepared_SegmentationKeys.ftl">
}, },
"ExecutionflowID": "${preparation_line.preparation_order_originator_reference}", "ExecutionflowID": "${preparation_line.preparation_order_originator_reference}",
"LineID": "${preparation_line.pro_line_number}", "LineID": "${preparation_line.pro_line_number}",
"ActorID": "${preparationOrder.physical_depot_code}", "ActorID": "${preparationOrder.physical_depot_code}",
"Quantity": { "Quantity": {
"LVID": "${quantity_in_base_lv_RP_Cst}", "LVID": "${quantity_in_base_lv_RP_Cst}",
"Value": ${despatched_ipg.quantity_lvs} "Value": ${despatched_ipg.quantity_lvs}
} }
} }
] ]
} }
}<#sep>,</#sep> }<#sep>,</#sep>
</#list> </#list>
<#sep>,</#sep> <#sep>,</#sep>
</#list> </#list>
] ]

View File

@ -2,8 +2,8 @@
<#-- <#--
"Metadata" :[ "Metadata" :[
] ]
--> -->
"Metadata": [ ] "Metadata": [ ]

View File

@ -2,23 +2,23 @@
<#-- <#--
"SegmentationKeys" :[ "SegmentationKeys" :[
{ {
"Key": "BatchNumber", "Key": "BatchNumber",
<#if despatched_ipg.batch_number == ""> <#if despatched_ipg.batch_number == "">
"Value": { "String" : "no batch"} "Value": { "String" : "no batch"}
<#else> <#else>
"Value": { "String" : "${despatched_ipg.batch_number}"} "Value": { "String" : "${despatched_ipg.batch_number}"}
</#if> </#if>
}, },
{ {
"Key": "Grade", "Key": "Grade",
"Value": { "String" : "${preparation_line.grade_code}"} "Value": { "String" : "${preparation_line.grade_code}"}
}, },
{ {
"Key": "Owner", "Key": "Owner",
"Value": { "String" : "${preparation_line.owner_code}"} "Value": { "String" : "${preparation_line.owner_code}"}
} }
] ]
--> -->
"SegmentationKeys": [ ] "SegmentationKeys": [ ]

View File

@ -2,26 +2,26 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
[ [
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line> <#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line>
<#assign preparationOrder_confirmation_datetime = RfxDateTimetoUTC(preparation_line.confirmation_datetime,time_zone_offset_rfx) /> <#assign preparationOrder_confirmation_datetime = RfxDateTimetoUTC(preparation_line.confirmation_datetime,time_zone_offset_rfx) />
<#list preparation_line.despatched_ipg_list as despatched_ipg> <#list preparation_line.despatched_ipg_list as despatched_ipg>
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
<#if despatched_ipg.carton_number != "000000000000000000"> <#if despatched_ipg.carton_number != "000000000000000000">
"RefID": "${despatched_ipg.carton_number}" "RefID": "${despatched_ipg.carton_number}"
<#else> <#else>
"RefID": "${despatched_ipg.hd_number}" "RefID": "${despatched_ipg.hd_number}"
</#if> </#if>
}, },
"Payload": { "Payload": {
} }
}<#sep>,</#sep> }<#sep>,</#sep>
</#list> </#list>
<#sep>,</#sep> <#sep>,</#sep>
</#list> </#list>
] ]

View File

@ -2,20 +2,20 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = preparationOrder.stock_despatch_at_preparation_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = preparationOrder.stock_despatch_at_preparation_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${preparation_line.preparation_order_originator_reference}", "RefID": "${preparation_line.preparation_order_originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": {} "Payload": {}
} }
] ]
<#-- ajouter une boucle sur tous les ODP de la prepa - --> <#-- ajouter une boucle sur tous les ODP de la prepa - -->

View File

@ -10,65 +10,65 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#case "U"> <#case "U">
<#-- *********************************************** Action = CREATE or UPDATE ******************** --> <#-- *********************************************** Action = CREATE or UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign order = JsonUtil.jsonToMap(dataRfx)> <#assign order = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#-- check preparation type code (internal order and reservation are ignored) --> <#-- check preparation type code (internal order and reservation are ignored) -->
<#if order.preparation_type_code == "010" || <#if order.preparation_type_code == "010" ||
order.preparation_type_code == "030"> order.preparation_type_code == "030">
<#-- Preparation order not confirmed --> <#-- Preparation order not confirmed -->
<#if order.preparation_order_confirmed == "false" > <#if order.preparation_order_confirmed == "false" >
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrPro_ExecutionflowDetected.ftl"> <#include "RFXtoRP_HsrPro_ExecutionflowDetected.ftl">
<#-- preparation expected a prendre en compte dans le connecteur <#-- preparation expected a prendre en compte dans le connecteur
, ,
<#assign apiReflexPlatformID = ApiReflexPlatformID.TransportExpected> <#assign apiReflexPlatformID = ApiReflexPlatformID.TransportExpected>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrPro_PreparationExpected.ftl"> <#include "RFXtoRP_HsrPro_PreparationExpected.ftl">
--> -->
<#-- Preparation order confirmed --> <#-- Preparation order confirmed -->
<#else> <#else>
<#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationCompleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationCompleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrPro_PreparationCompleted.ftl"> <#include "RFXtoRP_HsrPro_PreparationCompleted.ftl">
</#if> </#if>
<#else> <#else>
<#stop "preparation type not supported"> <#stop "preparation type not supported">
</#if> </#if>
} }
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign order = JsonUtil.jsonToMap(dataRfx)> <#assign order = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrPro_ExecutionflowCancelled.ftl"> <#include "RFXtoRP_HsrPro_ExecutionflowCancelled.ftl">
} }
] ]
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,12 +1,12 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${order.originator_reference}" "RefID": "${order.originator_reference}"
}, },
"Payload": { "Payload": {
} }
} }
] ]

View File

@ -1,106 +1,106 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
[ [
{ {
<#assign planned_final_delivery_start_datetime = RfxDateTimetoUTC(order.planned_final_delivery_start_datetime,time_zone_offset_rfx) /> <#assign planned_final_delivery_start_datetime = RfxDateTimetoUTC(order.planned_final_delivery_start_datetime,time_zone_offset_rfx) />
<#assign pro_creation_datetime = RfxDateTimetoUTC(order.creation_datetime,time_zone_offset_rfx) /> <#assign pro_creation_datetime = RfxDateTimetoUTC(order.creation_datetime,time_zone_offset_rfx) />
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${order.originator_reference}", "RefID": "${order.originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${pro_creation_datetime}", "DateTime": "${pro_creation_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": { "Payload": {
"CreationDateTime": { "CreationDateTime": {
"DateTime": "${pro_creation_datetime}", "DateTime": "${pro_creation_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
}, },
<#-- Header Metadata inclusion --> <#-- Header Metadata inclusion -->
<#include "RFXtoRP_HsrPro_ExecutionflowDetected_HeaderMetadata.ftl"> <#include "RFXtoRP_HsrPro_ExecutionflowDetected_HeaderMetadata.ftl">
"ShipFrom": { "ShipFrom": {
"ActorID": "${order.physical_depot_code}" "ActorID": "${order.physical_depot_code}"
}, },
"ShipFromAcked": true, "ShipFromAcked": true,
"ShipTo": { "ShipTo": {
<#if order.end_consignee_code != "ECOM"> <#if order.end_consignee_code != "ECOM">
"ActorID": "${order.end_consignee_code}" "ActorID": "${order.end_consignee_code}"
<#else> <#else>
<#if order.address != ""> <#if order.address != "">
"Actor": "Actor":
{ {
"Name" : "${order.address.name_or_company_name!""}", "Name" : "${order.address.name_or_company_name!""}",
"Address" : "Address" :
{ {
"City" : "${order.address.post_code_area_name!""}", "City" : "${order.address.post_code_area_name!""}",
"CountryCode" : "${order.address.iso_country_code!""}", "CountryCode" : "${order.address.iso_country_code!""}",
"PostalCode" : "${order.address.postal_code!""}", "PostalCode" : "${order.address.postal_code!""}",
"StreetAddressOne" : "${order.address.street_and_number_and_po_box!""}", "StreetAddressOne" : "${order.address.street_and_number_and_po_box!""}",
"StreetAddressTwo" : "${order.address.additional_address_data_1!""}", "StreetAddressTwo" : "${order.address.additional_address_data_1!""}",
"StreetAddressThree" : "${order.address.additional_address_data_2!""}" "StreetAddressThree" : "${order.address.additional_address_data_2!""}"
} }
}, },
"Contact" : "Contact" :
{ {
"FirstName" : "${order.address.first_name!""}", "FirstName" : "${order.address.first_name!""}",
"LastName" : "${order.address.last_name!""}", "LastName" : "${order.address.last_name!""}",
"Emails" : ["${order.address.mail_address!""}"], "Emails" : ["${order.address.mail_address!""}"],
"Phones" : ["${order.address.mobile_phone_number!""}"] "Phones" : ["${order.address.mobile_phone_number!""}"]
} }
</#if> </#if>
</#if> </#if>
}, },
<#if order.line_list??> <#if order.line_list??>
"Lines" : [ "Lines" : [
<#list order.line_list as line> <#list order.line_list as line>
{ {
<#if (line.originator_reference_line_number!0) != 0> <#if (line.originator_reference_line_number!0) != 0>
"LineID": "${line.originator_reference_line_number}", "LineID": "${line.originator_reference_line_number}",
<#else> <#else>
"LineID": "${line.preparation_order_line_number!0}", "LineID": "${line.preparation_order_line_number!0}",
</#if> </#if>
<#-- Line Metadata inclusion --> <#-- Line Metadata inclusion -->
<#include "RFXtoRP_HsrPro_ExecutionflowDetected_LineMetadata.ftl"> <#include "RFXtoRP_HsrPro_ExecutionflowDetected_LineMetadata.ftl">
"RequestedContent": "RequestedContent":
{ {
"Goods": "Goods":
{ {
"ItemID": "${line.item_code!"0"}", "ItemID": "${line.item_code!"0"}",
"LVBranchID": "${line.item_lv_code!"0"}", "LVBranchID": "${line.item_lv_code!"0"}",
<#if (line.optional_attributes.forced_priority_date?length != 0) && (line.optional_attributes.forced_priority_date?starts_with("00") == false)> <#if (line.optional_attributes.forced_priority_date?length != 0) && (line.optional_attributes.forced_priority_date?starts_with("00") == false)>
<#assign forced_priority_date = line.optional_attributes.forced_priority_date?datetime(rfx_date_format_default)?iso_utc /> <#assign forced_priority_date = line.optional_attributes.forced_priority_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${forced_priority_date}", "PriorityDate": "${forced_priority_date}",
</#if> </#if>
<#-- Line Segmentation Keys inclusion --> <#-- Line Segmentation Keys inclusion -->
<#include "RFXtoRP_HsrPro_ExecutionflowDetected_LineSegmentationKeys.ftl"> <#include "RFXtoRP_HsrPro_ExecutionflowDetected_LineSegmentationKeys.ftl">
}, },
"Quantity" : "Quantity" :
{ {
"LVID": "${quantity_in_base_lv_RP_Cst}", "LVID": "${quantity_in_base_lv_RP_Cst}",
"Value": "${line.base_lv_quantity_to_prepare!0}" "Value": "${line.base_lv_quantity_to_prepare!0}"
} }
} }
}<#sep>,</#sep> }<#sep>,</#sep>
</#list> </#list>
], ],
</#if> </#if>
"RequestedMilestones" : "RequestedMilestones" :
{ {
"RequestedDeliveryDateTime" : "RequestedDeliveryDateTime" :
{ {
"DateTime": "${planned_final_delivery_start_datetime}", "DateTime": "${planned_final_delivery_start_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
} }
} }
} }
] ]

View File

@ -4,12 +4,12 @@
<#-- <#--
"MetaData": [ "MetaData": [
{ {
"Key": "OrderType", "Key": "OrderType",
"Value": { "String" : "${order.optional_attributes.reason_code}"} "Value": { "String" : "${order.optional_attributes.reason_code}"}
} }
], ],
--> -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -2,4 +2,4 @@
<#-- use protobuf of class HsrPro to find Reflex Wms fields names --> <#-- use protobuf of class HsrPro to find Reflex Wms fields names -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -2,19 +2,19 @@
<#-- use protobuf of class HsrPro to find Reflex WMS fields names --> <#-- use protobuf of class HsrPro to find Reflex WMS fields names -->
<#-- <#--
"SegmentationKeys": [ { "SegmentationKeys": [ {
"Key": "BatchNumber", "Key": "BatchNumber",
<#if line.batch_1 == ""> <#if line.batch_1 == "">
"Value": { "String" : "no batch"} "Value": { "String" : "no batch"}
<#else> <#else>
"Value": { "String" : "${line.batch_1}"} "Value": { "String" : "${line.batch_1}"}
</#if> </#if>
}, },
{ {
"Key": "Grade", "Key": "Grade",
"Value": { "String" : "${SegmentationKeys_KV[line.grade_code_to_prepare]!Default_Value_Grade_SegmentationKey}"} "Value": { "String" : "${SegmentationKeys_KV[line.grade_code_to_prepare]!Default_Value_Grade_SegmentationKey}"}
} }
] ]
--> -->
"SegmentationKeys": [ ] "SegmentationKeys": [ ]

View File

@ -2,19 +2,19 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = order.confirmation_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = order.confirmation_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${order.originator_reference}", "RefID": "${order.originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -2,19 +2,19 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = order.creation_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = order.creation_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${order.originator_reference}", "RefID": "${order.originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -10,61 +10,61 @@
<#assign aDateTime = .now> <#assign aDateTime = .now>
<#switch cloudEventMsg.action> <#switch cloudEventMsg.action>
<#case "C"> <#case "C">
<#-- *********************************************** Action = CREATE ******************** --> <#-- *********************************************** Action = CREATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign receipt = JsonUtil.jsonToMap(dataRfx)> <#assign receipt = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl"> <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl">
} }
] ]
<#break> <#break>
<#case "U"> <#case "U">
<#-- *********************************************** Action = UPDATE ******************** --> <#-- *********************************************** Action = UPDATE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign receipt = JsonUtil.jsonToMap(dataRfx)> <#assign receipt = JsonUtil.jsonToMap(dataRfx)>
[ [
<#if receipt.receipt_confirmed == "true" > <#if receipt.receipt_confirmed == "true" >
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ReceiptCompleted> <#assign apiReflexPlatformID = ApiReflexPlatformID.ReceiptCompleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrReceiptList_ReceiptCompleted.ftl"> <#include "RFXtoRP_HsrReceiptList_ReceiptCompleted.ftl">
} }
<#else> <#else>
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl"> <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl">
} }
</#if> </#if>
] ]
<#break> <#break>
<#case "D"> <#case "D">
<#-- *********************************************** Action = DELETE ******************** --> <#-- *********************************************** Action = DELETE ******************** -->
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) /> <#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#assign receipt = JsonUtil.jsonToMap(dataRfx)> <#assign receipt = JsonUtil.jsonToMap(dataRfx)>
[ [
{ {
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled> <#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled>
"apiReflexPlatformID" : "${apiReflexPlatformID}", "apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" : "datas" :
<#include "RFXtoRP_HsrReceiptList_ExecutionflowCancelled.ftl"> <#include "RFXtoRP_HsrReceiptList_ExecutionflowCancelled.ftl">
} }
] ]
<#break> <#break>
<#default> <#default>
<#stop "event not supported"> <#stop "event not supported">
</#switch> </#switch>

View File

@ -1,126 +1,126 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
[ [
{ {
<#assign receipt_datetime = RfxDateTimetoUTC(receipt.receipt_datetime,time_zone_offset_rfx) /> <#assign receipt_datetime = RfxDateTimetoUTC(receipt.receipt_datetime,time_zone_offset_rfx) />
<#assign receipt_creation_datetime = RfxDateTimetoUTC(receipt.creation_datetime,time_zone_offset_rfx) /> <#assign receipt_creation_datetime = RfxDateTimetoUTC(receipt.creation_datetime,time_zone_offset_rfx) />
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${receipt.receipt_reference}" "RefID": "${receipt.receipt_reference}"
"RefDate": { "RefDate": {
"DateTime": "${receipt_creation_datetime}", "DateTime": "${receipt_creation_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": { "Payload": {
"CreationDateTime": { "CreationDateTime": {
"DateTime": "${receipt_creation_datetime}", "DateTime": "${receipt_creation_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
}, },
<#-- Header Metadata inclusion --> <#-- Header Metadata inclusion -->
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_HeaderMetadata.ftl"> <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_HeaderMetadata.ftl">
, ,
"ShipFrom": "ShipFrom":
{ {
"ActorID": "${receipt.original_code}" "ActorID": "${receipt.original_code}"
}, },
"ShipTo" : "ShipTo" :
{ {
"ActorID": "${receipt.physical_depot_code}" "ActorID": "${receipt.physical_depot_code}"
}, },
"ShipToAcked": true, "ShipToAcked": true,
<#if receipt.carrier_informations.carrier_code != ""> <#if receipt.carrier_informations.carrier_code != "">
"Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code}"}, "Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code}"},
</#if> </#if>
<#-- If receipt got lines --> <#-- If receipt got lines -->
<#if receipt.line_list??> <#if receipt.line_list??>
"Lines" : [ "Lines" : [
<#list receipt.line_list as line> <#list receipt.line_list as line>
<#-- if receipt type = 030 (transfert) --> <#-- if receipt type = 030 (transfert) -->
<#if receipt.receipt_type = "030"> <#if receipt.receipt_type = "030">
<#list line.line_detail as detail> <#list line.line_detail as detail>
{ {
"LineID": "${line.receipt_line_number}${detail.receipt_detail_number}", "LineID": "${line.receipt_line_number}${detail.receipt_detail_number}",
<#-- Line Metadata inclusion --> <#-- Line Metadata inclusion -->
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineMetadata.ftl">, <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineMetadata.ftl">,
"RequestedContent": "RequestedContent":
{ {
"Goods": "Goods":
{ {
"ItemID": "${line.item_code!"0"}", "ItemID": "${line.item_code!"0"}",
"LVBranchID": "${line.item_lv_code!"0"}", "LVBranchID": "${line.item_lv_code!"0"}",
<#if (detail.priority_date?length != 0) && (detail.priority_date?starts_with("00") == false)> <#if (detail.priority_date?length != 0) && (detail.priority_date?starts_with("00") == false)>
<#assign line_detail_priority_date = detail.priority_date?datetime(rfx_date_format_default)?iso_utc /> <#assign line_detail_priority_date = detail.priority_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${line_detail_priority_date}", "PriorityDate": "${line_detail_priority_date}",
</#if> </#if>
<#-- Line Segmentation Keys inclusion --> <#-- Line Segmentation Keys inclusion -->
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl"> <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl">
}, },
"Quantity" : "Quantity" :
{ {
"LVID": "${quantity_in_base_lv_RP_Cst}", "LVID": "${quantity_in_base_lv_RP_Cst}",
"Value": "${detail.confirmation_lv_quantity!0}" "Value": "${detail.confirmation_lv_quantity!0}"
} }
} }
}<#sep>,</#sep> }<#sep>,</#sep>
</#list> </#list>
<#-- receipt type different from transfert non transfert --> <#-- receipt type different from transfert non transfert -->
<#else> <#else>
{ {
"LineID": "${line.receipt_line_number}", "LineID": "${line.receipt_line_number}",
<#-- Line Metadata inclusion --> <#-- Line Metadata inclusion -->
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineMetadata.ftl">, <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineMetadata.ftl">,
"RequestedContent": "RequestedContent":
{ {
"Goods": "Goods":
{ {
"ItemID": "${line.item_code!"0"}", "ItemID": "${line.item_code!"0"}",
"LVBranchID": "${line.item_lv_code!"0"}", "LVBranchID": "${line.item_lv_code!"0"}",
<#if line.line_without_detail??> <#if line.line_without_detail??>
<#if (line.line_without_detail.priority_date?length != 0) && (line.line_without_detail.priority_date?starts_with("00") == false)> <#if (line.line_without_detail.priority_date?length != 0) && (line.line_without_detail.priority_date?starts_with("00") == false)>
<#assign line_without_detail_priority_date = line.line_without_detail.priority_date?datetime(rfx_date_format_default)?iso_utc /> <#assign line_without_detail_priority_date = line.line_without_detail.priority_date?datetime(rfx_date_format_default)?iso_utc />
"PriorityDate": "${line_without_detail_priority_date}", "PriorityDate": "${line_without_detail_priority_date}",
</#if> </#if>
<#-- Line Segmentation Keys inclusion --> <#-- Line Segmentation Keys inclusion -->
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl"> <#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_LineSegmentationKeys.ftl">
<#else> <#else>
<#stop "Reception non transfert avec detail"> <#stop "Reception non transfert avec detail">
</#if> </#if>
}, },
"Quantity" : "Quantity" :
{ {
"LVID": "${quantity_in_base_lv_RP_Cst}", "LVID": "${quantity_in_base_lv_RP_Cst}",
"Value": "${line.order_quantity_in_lv!0}" "Value": "${line.order_quantity_in_lv!0}"
} }
} }
} }
</#if> </#if>
<#sep>,</#sep> <#sep>,</#sep>
</#list> </#list>
], ],
</#if> </#if>
"RequestedMilestones" : "RequestedMilestones" :
{ {
"RequestedDeliveryDateTime" : "RequestedDeliveryDateTime" :
{ {
"DateTime": "${receipt_datetime}", "DateTime": "${receipt_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
} }
} }
} }
] ]

View File

@ -3,12 +3,12 @@
<#-- <#--
"MetaData": [ "MetaData": [
{ {
"Key": "OrderType", "Key": "OrderType",
"Value": { "String" : "${order.optional_attributes.reason_code}"} "Value": { "String" : "${order.optional_attributes.reason_code}"}
} }
], ],
--> -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -1,4 +1,4 @@
<#-- use protobuf of class HsrReceiptList to find Reflex Wms fields names --> <#-- use protobuf of class HsrReceiptList to find Reflex Wms fields names -->
"MetaData": [ ], "MetaData": [ ],

View File

@ -1,19 +1,19 @@
<#-- use protobuf of class HsrReceiptList to find Reflex WMS fields names --> <#-- use protobuf of class HsrReceiptList to find Reflex WMS fields names -->
<#-- <#--
"SegmentationKeys": [ { "SegmentationKeys": [ {
"Key": "BatchNumber", "Key": "BatchNumber",
<#if line.batch_1 == ""> <#if line.batch_1 == "">
"Value": { "String" : "no batch"} "Value": { "String" : "no batch"}
<#else> <#else>
"Value": { "String" : "${line.batch_1}"} "Value": { "String" : "${line.batch_1}"}
</#if> </#if>
}, },
{ {
"Key": "Grade", "Key": "Grade",
"Value": { "String" : "${line.grade_code_to_prepare} "Value": { "String" : "${line.grade_code_to_prepare}
} }
] ]
--> -->
"SegmentationKeys": [ ] "SegmentationKeys": [ ]

View File

@ -1,12 +1,12 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${receipt.receipt_reference}" "RefID": "${receipt.receipt_reference}"
}, },
"Payload": { "Payload": {
} }
} }
] ]

View File

@ -2,19 +2,19 @@
<#include "ReflexUtils.ftl"> <#include "ReflexUtils.ftl">
<#assign preparation_status_datetime = order.creation_datetime?datetime(rfx_date_format_default)?iso_utc /> <#assign preparation_status_datetime = order.creation_datetime?datetime(rfx_date_format_default)?iso_utc />
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${order.originator_reference}", "RefID": "${order.originator_reference}",
"RefDate": { "RefDate": {
"DateTime": "${preparation_status_datetime}", "DateTime": "${preparation_status_datetime}",
"AuthorTimeZone": "${time_zone_rfx}" "AuthorTimeZone": "${time_zone_rfx}"
} }
}, },
"Payload": {} "Payload": {}
} }
] ]

View File

@ -1,14 +1,14 @@
<#include "HfRpConfig.ftl"> <#include "HfRpConfig.ftl">
<#include "projectCst.ftl"> <#include "projectCst.ftl">
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${receipt.receipt_reference}" "RefID": "${receipt.receipt_reference}"
}, },
"Payload": { "Payload": {
} }
} }
] ]

View File

@ -1,12 +1,12 @@
[ [
{ {
"Header": { "Header": {
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
"RefID": "${order.originator_reference}" "RefID": "${order.originator_reference}"
}, },
"Payload": { "Payload": {
} }
} }
] ]

View File

@ -6,4 +6,4 @@
<#return (datetimeUTC)> <#return (datetimeUTC)>
</#function> </#function>