SCPN1-10706

This commit is contained in:
2026-05-04 16:52:06 +02:00
parent d9297c3ad6
commit 446d13127a
2 changed files with 22 additions and 16 deletions

View File

@@ -37,7 +37,11 @@
<#if uniqueness>
<#local depot = actor>
<#else>
<#if actor?length le 4>
<#local depot = actor[4..]>
<#else>
<#local depot = actor>
</#if>
</#if>
<#return (depot)>
</#function>
@@ -78,7 +82,11 @@
<#if uniqueness>
<#local supplier = actor>
<#else>
<#if actor?length le 4>
<#local supplier = actor[4..]>
<#else>
<#local supplier = actor>
</#if>
</#if>
<#return (supplier)>
</#function>
@@ -117,7 +125,11 @@
<#if uniqueness>
<#local carrier = actor>
<#else>
<#if actor?length le 4>
<#local carrier = actor[4..]>
<#else>
<#local carrier = actor>
</#if>
</#if>
<#return (carrier)>
</#function>
@@ -156,7 +168,11 @@
<#if uniqueness>
<#local consignee = actor>
<#else>
<#if actor?length le 4>
<#local consignee = actor[4..]>
<#else>
<#local consignee = actor>
</#if>
</#if>
<#return (consignee)>
</#function>

View File

@@ -11,11 +11,7 @@
<#-- 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!="">
<#if (executionflow.ShipTo.ActorID?length gt 4) >
<#assign actorID = "${RPtoRFXprefixConsignee(executionflow.ShipTo.ActorID)}" >
<#else>
<#assign actorID = "${executionflow.ShipTo.ActorID}" >
</#if>
<#else>
<#assign actorID = defaultactor >
</#if>
@@ -26,13 +22,7 @@
"method" : "POST",
"uri_substitutions": {
"activity_code": "${activity_code}",
<#if executionflow.ShipFrom.ActorID?? && executionflow.ShipFrom.ActorID!="">
<#if (executionflow.ShipFrom.ActorID?length gt 4) >
"physical_depot_code": "${RPtoRFXprefixDepot(executionflow.ShipFrom.ActorID)}",
<#else>
"physical_depot_code": "${executionflow.ShipFrom.ActorID}",
</#if>
</#if>
"originator_code": "${originator_code}"
},
"payload" :