modifs
This commit is contained in:
parent
956105fc38
commit
c05a4653ba
7
ActorPrefix.ftl
Normal file
7
ActorPrefix.ftl
Normal file
@ -0,0 +1,7 @@
|
||||
<#-- --------------------------------------------------------------------------------------- -->
|
||||
<#-- Prefix -->
|
||||
<#-- --------------------------------------------------------------------------------------- -->
|
||||
<#assign depot = "" >
|
||||
<#assign carrier = "" >
|
||||
<#assign supplier = "" >
|
||||
<#assign consignee = "" >
|
||||
@ -1,6 +1,6 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
<#list reflexStockPicturesInterface.detailled_stock_list as stock>
|
||||
{
|
||||
@ -8,18 +8,10 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${stock.physical_depot_code}"
|
||||
<#else>
|
||||
"ActorID": "DEP${stock.physical_depot_code}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${stock.physical_depot_code}"
|
||||
<#else>
|
||||
"ActorID": "DEP${stock.physical_depot_code}"
|
||||
</#if>
|
||||
"ActorID": "${depot}${stock.physical_depot_code}"
|
||||
</#if>
|
||||
},
|
||||
"Payload": {
|
||||
@ -29,18 +21,11 @@
|
||||
"DateTime": "${generation_date}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
},
|
||||
<#if text_language_rfx="fr">
|
||||
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
||||
<#else>
|
||||
"ID": "DEP${stock.physical_depot_code}-${idSnapshot}",
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
||||
<#else>
|
||||
"ID": "DEP${stock.physical_depot_code}-${idSnapshot}",
|
||||
</#if>
|
||||
"ID": "${depot}${stock.physical_depot_code}-${idSnapshot}",
|
||||
</#if>
|
||||
"MessageNb": ${sum_elt}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
<#list reflexStockPicturesInterface.detailled_stock_list as stock>
|
||||
{
|
||||
@ -7,18 +8,10 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"Payload": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${stock.physical_depot_code}",
|
||||
<#else>
|
||||
"ActorID": "DEP${stock.physical_depot_code}",
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${stock.physical_depot_code}",
|
||||
<#else>
|
||||
"ActorID": "DEP${stock.physical_depot_code}",
|
||||
</#if>
|
||||
"ActorID": "${depot}${stock.physical_depot_code}",
|
||||
</#if>
|
||||
|
||||
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
|
||||
@ -27,20 +20,11 @@
|
||||
"DateTime": "${generation_date}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
},
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
||||
<#else>
|
||||
"ID": "DEP${stock.physical_depot_code}-${idSnapshot}",
|
||||
"ID": "${depot}${stock.physical_depot_code}-${idSnapshot}",
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
||||
<#else>
|
||||
"ID": "DEP${stock.physical_depot_code}-${idSnapshot}",
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
"Quantity":
|
||||
{
|
||||
"Value" : "${stock.quantity_in_base_lvs!"0"}",
|
||||
|
||||
@ -1,25 +1,18 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "TRA${carrier.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "CAR${carrier.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
"RefID": "${carrier}${carrier.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
"Name": "${carrier.carrier_designation?json_string}",
|
||||
"ManagedStock": false,
|
||||
|
||||
@ -1,24 +1,17 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "TRA${carrier.carrier_code?trim?json_string}"
|
||||
"RefID": "${carrier}${carrier.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "CAR${carrier.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
},
|
||||
|
||||
"Payload": {}
|
||||
|
||||
@ -1,24 +1,17 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "DES${actor.code?trim?json_string}"
|
||||
"RefID": "${consignee}${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "CON${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
|
||||
@ -1,25 +1,18 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "DES${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "CON${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
"RefID": "${consignee}${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
|
||||
"Payload": {}
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
<#assign receipt_confirmation_datetime = RfxDateTimetoUTC(reflexMvtStockInterface.ipg_move_creation_datetime,time_zone_offset_rfx) />
|
||||
<#assign priority_date = reflexMvtStockInterface.ipg_priority_date?datetime(rfx_date_format_default)?iso_utc />
|
||||
@ -33,35 +34,14 @@
|
||||
<#if reflexMvtStockInterface.receipt_reference!="">
|
||||
"ExecutionflowID": "${reflexMvtStockInterface.receipt_reference?trim?json_string}",
|
||||
<#else>
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ExecutionflowID": "${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
|
||||
<#else>
|
||||
"ExecutionflowID": "DEP${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ExecutionflowID": "${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
|
||||
<#else>
|
||||
"ExecutionflowID": "DEP${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
"LineID": "${reflexMvtStockInterface.receipt_line_number}",
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "DEP${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
"ActorID": "${depot}${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "DEP${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
"Quantity": {
|
||||
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
||||
"Value": ${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
|
||||
<#assign MoveType_KV = {"130":"STOCK_MOVEMENT_TYPE_PRODUCTION",
|
||||
"200":"STOCK_MOVEMENT_TYPE_FIX",
|
||||
@ -42,20 +43,11 @@
|
||||
|
||||
"LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}"
|
||||
},
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "DEP${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
"ActorID": "${depot}${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "DEP${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
"Movement": {
|
||||
|
||||
"DateTime": {
|
||||
|
||||
@ -1,25 +1,18 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "FOU${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "SUP${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
"RefID": "${supplier}${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
"Name": "${actor.designation?json_string}",
|
||||
"ManagedStock": false,
|
||||
@ -27,10 +20,8 @@
|
||||
<#-- ***Partner ID could be added here *** -->
|
||||
<#-- "PartnerID": "${}", -->
|
||||
|
||||
|
||||
<#include "RFXtoRP_HsaSup_ActorCreated_Metadata.ftl">,
|
||||
|
||||
|
||||
"Address":
|
||||
{
|
||||
<#-- if Reflex WMS address is structured -->
|
||||
|
||||
@ -1,25 +1,18 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "FOU${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "SUP${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
"RefID": "${supplier}${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
|
||||
"Payload": {}
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,25 +1,18 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "DEP${depot.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "DEP${depot.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
"RefID": "${depot}${depot.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
"Name": "${depot.physical_depot_designation?json_string}",
|
||||
"ManagedStock": true,
|
||||
|
||||
@ -1,26 +1,18 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "DEP${depot.physical_depot_code?trim?json_string}"
|
||||
"RefID": "${depot}${depot.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "DEP${depot.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
},
|
||||
|
||||
"Payload": {}
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
<#assign refIDHmap_local ={}>
|
||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.preparation_order_originator_reference!="") as preparation_line>
|
||||
@ -18,20 +19,11 @@
|
||||
},
|
||||
"Payload":{
|
||||
"Carrier": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"TRA${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
"ActorID":"${carrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"CAR${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
}
|
||||
<#-- Add transport grade code
|
||||
<#if preparationOrder.transport_grade_code!="">
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list?? && l.preparation_order_originator_reference!="") as preparation_line>
|
||||
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
||||
@ -116,20 +118,11 @@
|
||||
<#else>
|
||||
"LineID": "${preparation_line.pro_line_number!0}",
|
||||
</#if>
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "DEP${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
"ActorID": "${depot}${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "DEP${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
"Quantity": {
|
||||
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
||||
"Value": ${despatched_ipg.quantity_lvs}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
<#assign refIDHmap_local ={}>
|
||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.preparation_order_originator_reference!="") as preparation_line>
|
||||
@ -18,21 +19,11 @@
|
||||
},
|
||||
"Payload":{
|
||||
"Carrier": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"TRA${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
"ActorID":"${carrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"CAR${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
|
||||
{
|
||||
@ -18,18 +19,10 @@
|
||||
<#if preparationOrder.load_data?? && preparationOrder.load_data.carrier_code?? && preparationOrder.load_data.carrier_code!="" >
|
||||
,
|
||||
"HUCarrier":{
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"TRA${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"CAR${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
"ActorID":"${carrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<#include "HfRpConfig.ftl">
|
||||
<#include "ReflexUtils.ftl">
|
||||
<#include "ActorPrefix.ftl">
|
||||
[
|
||||
{
|
||||
<#assign planned_final_delivery_start_datetime = RfxDateTimetoUTC(preparation_order.planned_final_delivery_start_datetime,time_zone_offset_rfx) />
|
||||
@ -26,20 +27,11 @@
|
||||
"CarrierService":"${preparation_order.transport_grade_code?trim?json_string}",
|
||||
</#if> -->
|
||||
"ShipFrom": {
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${preparation_order.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID": "DEP${preparation_order.physical_depot_code?trim?json_string}"
|
||||
"ActorID": "${depot}${preparation_order.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${preparation_order.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID": "DEP${preparation_order.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
},
|
||||
"ShipFromAcked": true,
|
||||
"ShipTo": {
|
||||
@ -61,18 +53,10 @@
|
||||
preparation_order.address.territorial_division_code == "" &&
|
||||
preparation_order.address.postal_code == "" &&
|
||||
preparation_order.address.iso_country_code == "">
|
||||
<#if text_language_rfx="fr">
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${preparation_order.end_consignee_code}"
|
||||
<#else>
|
||||
"ActorID": "DES${preparation_order.end_consignee_code}"
|
||||
</#if>
|
||||
<#else>
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${preparation_order.end_consignee_code}"
|
||||
<#else>
|
||||
"ActorID": "CON${preparation_order.end_consignee_code}"
|
||||
</#if>
|
||||
"ActorID": "${consignee}${preparation_order.end_consignee_code}"
|
||||
</#if>
|
||||
<#else>
|
||||
"Actor":
|
||||
|
||||
@ -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,39 +30,21 @@
|
||||
},
|
||||
"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}"
|
||||
"ActorID": "${depot}${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>
|
||||
|
||||
},
|
||||
"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>
|
||||
<#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}"},
|
||||
"Carrier" : {"ActorID": "${carrier}${receipt.carrier_informations.carrier_code?trim?json_string}"},
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
|
||||
<#if receipt.line_list??>
|
||||
"Lines" : [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user