This commit is contained in:
2024-09-17 10:25:53 +02:00
parent 956105fc38
commit c05a4653ba
20 changed files with 113 additions and 288 deletions

View File

@@ -1,5 +1,6 @@
<#include "HfRpConfig.ftl">
<#include "ReflexUtils.ftl">
<#include "ActorPrefix.ftl">
[
{
<#assign receipt_datetime = RfxDateTimetoUTC(receipt.receipt_datetime,time_zone_offset_rfx) />
@@ -29,40 +30,22 @@
},
"ShipTo" :
{
<#if text_language_rfx="fr">
<#if uniqueness?? && uniqueness!="" >
"ActorID": "${receipt.physical_depot_code?trim?json_string}"
<#else>
"ActorID": "DEP${receipt.physical_depot_code?trim?json_string}"
</#if>
<#else>
<#if uniqueness?? && uniqueness!="" >
"ActorID": "${receipt.physical_depot_code?trim?json_string}"
<#else>
"ActorID": "DEP${receipt.physical_depot_code?trim?json_string}"
</#if>
<#if uniqueness?? && uniqueness!="" >
"ActorID": "${receipt.physical_depot_code?trim?json_string}"
<#else>
"ActorID": "${depot}${receipt.physical_depot_code?trim?json_string}"
</#if>
},
"ShipToAcked": true,
<#if receipt.carrier_informations.carrier_code != "">
<#if text_language_rfx="fr">
<#if uniqueness?? && uniqueness!="" >
"Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code?trim?json_string}"},
<#else>
"Carrier" : {"ActorID": "TRA${receipt.carrier_informations.carrier_code?trim?json_string}"},
</#if>
<#if uniqueness?? && uniqueness!="" >
"Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code?trim?json_string}"},
<#else>
<#if uniqueness?? && uniqueness!="" >
"Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code?trim?json_string}"},
<#else>
"Carrier" : {"ActorID": "CAR${receipt.carrier_informations.carrier_code?trim?json_string}"},
</#if>
"Carrier" : {"ActorID": "${carrier}${receipt.carrier_informations.carrier_code?trim?json_string}"},
</#if>
</#if>
<#if receipt.line_list??>
"Lines" : [
<#list receipt.line_list as line>