initialisation for default data files

This commit is contained in:
Laure Pascal 2023-10-12 11:21:19 +02:00
parent 96757a5262
commit bee2e4add3
5 changed files with 25 additions and 20 deletions

View File

@ -17,7 +17,7 @@
<#assign apiRestReflexID = ApiRestReflexID.preparation_orders_post> <#assign apiRestReflexID = ApiRestReflexID.preparation_orders_post>
"apiRestReflexID" : "${apiRestReflexID}", "apiRestReflexID" : "${apiRestReflexID}",
"datas" : "datas" :
<#include "RPtoRFX_Preparation_orders_post.ftl"> <#include "RPtoRFX_PrepOrder.ftl">
} }
</#if> </#if>
<#if eventRP.partnerAppRole == "ShipTo" && executionflow.ShipTo.ActorID != "" && executionflow.ShipTo.Actor.IsShipToConnected?? && executionflow.ShipTo.Actor.IsShipToConnected> <#if eventRP.partnerAppRole == "ShipTo" && executionflow.ShipTo.ActorID != "" && executionflow.ShipTo.Actor.IsShipToConnected?? && executionflow.ShipTo.Actor.IsShipToConnected>
@ -25,13 +25,13 @@
<#assign apiRestReflexID = ApiRestReflexID.receipts_post> <#assign apiRestReflexID = ApiRestReflexID.receipts_post>
"apiRestReflexID" : "${apiRestReflexID}", "apiRestReflexID" : "${apiRestReflexID}",
"datas" : "datas" :
<#include "RPtoRFX_Receipts_post.ftl"> <#include "RPtoRFX_Receipt.ftl">
} }
</#if> </#if>
] ]
<#break> <#break>
<#default> <#default>
<#stop "Event not process"> <#stop "Event not processed">
</#switch> </#switch>

View File

@ -1,12 +1,7 @@
<#assign Default_Value_Owner_SegmentationKey = ""/> <#include "RPtoRFX_PrepOrder_DefaultData.ftl">
<#assign Default_Value_Grade_SegmentationKey = "STD"/>
<#assign Reflex_Originator = "50000189"/>
<#assign activity_code = "PEN"/>
<#assign preparation_type_code = "010"/>
<#assign load_grouping = "DEFAUT"/>
<#assign ActorID_RPtoRFX = {"J001":"J01","J002":"J02","J003":"J03","J004":"J04","J005":"J05"} >
<#assign SegmentationKeys_RPtoRFX = {"Sales":"SAL","Standard":"STD","Unsaleable":"UNS"}/>
<#assign aDateTime = .now> <#assign aDateTime = .now>
{ {
"id" : {"refid" : "${executionflow.OrderID}"}, "id" : {"refid" : "${executionflow.OrderID}"},
"route" : "rest/public/v1/activities/{activity_code}/physical_depots/{physical_depot_code}/originators/{originator_code}/preparation_orders", "route" : "rest/public/v1/activities/{activity_code}/physical_depots/{physical_depot_code}/originators/{originator_code}/preparation_orders",

View File

@ -0,0 +1,9 @@
<#assign Default_Value_Owner_SegmentationKey = ""/>
<#assign Default_Value_Grade_SegmentationKey = "STD"/>
<#assign Reflex_Originator = "50000189"/>
<#assign activity_code = "PEN"/>
<#assign preparation_type_code = "010"/>
<#assign load_grouping = "DEFAUT"/>
<#assign ActorID_RPtoRFX = {"J001":"J01","J002":"J02","J003":"J03","J004":"J04","J005":"J05"} >
<#assign SegmentationKeys_RPtoRFX = {"Sales":"SAL","Standard":"STD","Unsaleable":"UNS"}/>

View File

@ -1,12 +1,4 @@
<#assign Default_Value_Owner_SegmentationKey = "PEN"/> <#include "RPtoRFX_Receipt_DefaultData.ftl">
<#assign Default_Value_Grade_SegmentationKey = "STD"/>
<#assign Reflex_Originator = "STANDARD"/>
<#assign work_mode_code = "LPA"/>
<#assign activity_code = "PEN"/>
<#assign receipt_reason_code = "REC"/>
<#assign receipt_type = "010"/>
<#assign ActorID_RPtoRFX = {"J001":"J01","J002":"J02","J003":"J03","J004":"J04","J005":"J05"} >
<#assign SegmentationKeys_RPtoRFX = {"Sales":"SAL","Standard":"STD","Unsaleable":"UNS"}/>
<#assign aDateTime = .now> <#assign aDateTime = .now>
{ {
"id" : {"refid" : "${executionflow.OrderID}"}, "id" : {"refid" : "${executionflow.OrderID}"},

View File

@ -0,0 +1,9 @@
<#assign Default_Value_Owner_SegmentationKey = "PEN"/>
<#assign Default_Value_Grade_SegmentationKey = "STD"/>
<#assign Reflex_Originator = "STANDARD"/>
<#assign work_mode_code = "LPA"/>
<#assign activity_code = "PEN"/>
<#assign receipt_reason_code = "REC"/>
<#assign receipt_type = "010"/>
<#assign ActorID_RPtoRFX = {"J001":"J01","J002":"J02","J003":"J03","J004":"J04","J005":"J05"} >
<#assign SegmentationKeys_RPtoRFX = {"Sales":"SAL","Standard":"STD","Unsaleable":"UNS"}/>