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> <#if uniqueness>
<#local depot = actor> <#local depot = actor>
<#else> <#else>
<#local depot = actor[4..]> <#if actor?length le 4>
<#local depot = actor[4..]>
<#else>
<#local depot = actor>
</#if>
</#if> </#if>
<#return (depot)> <#return (depot)>
</#function> </#function>
@@ -78,7 +82,11 @@
<#if uniqueness> <#if uniqueness>
<#local supplier = actor> <#local supplier = actor>
<#else> <#else>
<#local supplier = actor[4..]> <#if actor?length le 4>
<#local supplier = actor[4..]>
<#else>
<#local supplier = actor>
</#if>
</#if> </#if>
<#return (supplier)> <#return (supplier)>
</#function> </#function>
@@ -117,7 +125,11 @@
<#if uniqueness> <#if uniqueness>
<#local carrier = actor> <#local carrier = actor>
<#else> <#else>
<#local carrier = actor[4..]> <#if actor?length le 4>
<#local carrier = actor[4..]>
<#else>
<#local carrier = actor>
</#if>
</#if> </#if>
<#return (carrier)> <#return (carrier)>
</#function> </#function>
@@ -156,7 +168,11 @@
<#if uniqueness> <#if uniqueness>
<#local consignee = actor> <#local consignee = actor>
<#else> <#else>
<#local consignee = actor[4..]> <#if actor?length le 4>
<#local consignee = actor[4..]>
<#else>
<#local consignee = actor>
</#if>
</#if> </#if>
<#return (consignee)> <#return (consignee)>
</#function> </#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 --> <#-- If you are using unreferenced actors, you will need to create a "VIZ" consignee in HARDIS WMS to use this feature -->
<#assign defaultactor ="VIZ"> <#assign defaultactor ="VIZ">
<#if executionflow.ShipTo.ActorID?? && executionflow.ShipTo.ActorID!=""> <#if executionflow.ShipTo.ActorID?? && executionflow.ShipTo.ActorID!="">
<#if (executionflow.ShipTo.ActorID?length gt 4) > <#assign actorID = "${RPtoRFXprefixConsignee(executionflow.ShipTo.ActorID)}" >
<#assign actorID = "${RPtoRFXprefixConsignee(executionflow.ShipTo.ActorID)}" >
<#else>
<#assign actorID = "${executionflow.ShipTo.ActorID}" >
</#if>
<#else> <#else>
<#assign actorID = defaultactor > <#assign actorID = defaultactor >
</#if> </#if>
@@ -26,13 +22,7 @@
"method" : "POST", "method" : "POST",
"uri_substitutions": { "uri_substitutions": {
"activity_code": "${activity_code}", "activity_code": "${activity_code}",
<#if executionflow.ShipFrom.ActorID?? && executionflow.ShipFrom.ActorID!=""> "physical_depot_code": "${RPtoRFXprefixDepot(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}" "originator_code": "${originator_code}"
}, },
"payload" : "payload" :