From 1f9a8c5894f5b57671b20df665b9265d20529ea6 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Thu, 30 Apr 2026 15:02:26 +0200 Subject: [PATCH] SCPN1-10706 --- RPtoRFX_PrepOrder.ftl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/RPtoRFX_PrepOrder.ftl b/RPtoRFX_PrepOrder.ftl index aa1e6ec..7e9fa45 100644 --- a/RPtoRFX_PrepOrder.ftl +++ b/RPtoRFX_PrepOrder.ftl @@ -11,7 +11,11 @@ <#-- If you are using unreferenced actors, you will need to create a "VIZ" consignee in HARDIS WMS to use this feature --> <#assign defaultactor ="VIZ"> <#if executionflow.ShipTo.ActorID?? && executionflow.ShipTo.ActorID!=""> - <#assign actorID = "${RPtoRFXprefixConsignee(executionflow.ShipTo.ActorID)}" > + <#if uniqueness && (executionflow.ShipTo.ActorID?number >4) > + <#assign actorID = "${RPtoRFXprefixConsignee(executionflow.ShipTo.ActorID)}" > + <#else> + <#assign actorID = "${executionflow.ShipTo.ActorID}" > + <#else> <#assign actorID = defaultactor > @@ -22,7 +26,13 @@ "method" : "POST", "uri_substitutions": { "activity_code": "${activity_code}", - "physical_depot_code": "${RPtoRFXprefixDepot(executionflow.ShipFrom.ActorID)}", + <#if executionflow.ShipFrom.ActorID?? && executionflow.ShipFrom.ActorID!=""> + <#if uniqueness && (executionflow.ShipFrom.ActorID?number >4) > + "physical_depot_code": "${RPtoRFXprefixDepot(executionflow.ShipFrom.ActorID)}", + <#else> + "physical_depot_code": "${executionflow.ShipFrom.ActorID}", + + "originator_code": "${originator_code}" }, "payload" :