modifs
This commit is contained in:
parent
c05a4653ba
commit
09ec0e4509
@ -1,7 +1,7 @@
|
||||
<#-- --------------------------------------------------------------------------------------- -->
|
||||
<#-- Prefix -->
|
||||
<#-- --------------------------------------------------------------------------------------- -->
|
||||
<#assign depot = "" >
|
||||
<#assign carrier = "" >
|
||||
<#assign supplier = "" >
|
||||
<#assign consignee = "" >
|
||||
<#assign prefixdepot = "" >
|
||||
<#assign prefixcarrier = "" >
|
||||
<#assign prefixsupplier = "" >
|
||||
<#assign prefixconsignee = "" >
|
||||
@ -11,7 +11,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${stock.physical_depot_code}"
|
||||
<#else>
|
||||
"ActorID": "${depot}${stock.physical_depot_code}"
|
||||
"ActorID": "${prefixdepot}${stock.physical_depot_code}"
|
||||
</#if>
|
||||
},
|
||||
"Payload": {
|
||||
@ -21,12 +21,7 @@
|
||||
"DateTime": "${generation_date}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
},
|
||||
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
||||
<#else>
|
||||
"ID": "${depot}${stock.physical_depot_code}-${idSnapshot}",
|
||||
</#if>
|
||||
"MessageNb": ${sum_elt}
|
||||
}
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${stock.physical_depot_code}",
|
||||
<#else>
|
||||
"ActorID": "${depot}${stock.physical_depot_code}",
|
||||
"ActorID": "${prefixdepot}${stock.physical_depot_code}",
|
||||
</#if>
|
||||
|
||||
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
|
||||
@ -20,11 +20,7 @@
|
||||
"DateTime": "${generation_date}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
},
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
||||
<#else>
|
||||
"ID": "${depot}${stock.physical_depot_code}-${idSnapshot}",
|
||||
</#if>
|
||||
"Quantity":
|
||||
{
|
||||
"Value" : "${stock.quantity_in_base_lvs!"0"}",
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "${carrier}${carrier.carrier_code?trim?json_string}"
|
||||
"RefID": "${prefixcarrier}${carrier.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
"Payload": {
|
||||
@ -23,8 +23,6 @@
|
||||
|
||||
<#include "RFXtoRP_HsaCarrier_ActorCreated_Metadata.ftl">,
|
||||
|
||||
|
||||
|
||||
"Address":
|
||||
{
|
||||
<#-- if Reflex WMS address is structured -->
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "${carrier}${carrier.carrier_code?trim?json_string}"
|
||||
"RefID": "${prefixcarrier}${carrier.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "${consignee}${actor.code?trim?json_string}"
|
||||
"RefID": "${prefixconsignee}${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "${consignee}${actor.code?trim?json_string}"
|
||||
"RefID": "${prefixconsignee}${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
"Payload": {}
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "${depot}${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
"ActorID": "${prefixdepot}${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
"Quantity": {
|
||||
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
||||
|
||||
@ -22,7 +22,6 @@
|
||||
}>
|
||||
<#assign generation_date = RfxDateTimetoUTC(reflexMvtStockInterface.ipg_move_creation_datetime,time_zone_offset_rfx) />
|
||||
<#assign ipg_priority_datetime = reflexMvtStockInterface.ipg_priority_date?datetime(rfx_date_format_default)?iso_utc />
|
||||
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
@ -46,7 +45,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "${depot}${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
"ActorID": "${prefixdepot}${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
"Movement": {
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "${supplier}${actor.code?trim?json_string}"
|
||||
"RefID": "${prefixsupplier}${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
"Payload": {
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "${supplier}${actor.code?trim?json_string}"
|
||||
"RefID": "${prefixsupplier}${actor.code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
"Payload": {}
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "${depot}${depot.physical_depot_code?trim?json_string}"
|
||||
"RefID": "${prefixdepot}${depot.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
"Payload": {
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"RefID": "${depot}${depot.physical_depot_code?trim?json_string}"
|
||||
"RefID": "${prefixdepot}${depot.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
"Payload": {}
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"${carrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
"ActorID":"${prefixcarrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
}
|
||||
<#-- Add transport grade code
|
||||
|
||||
@ -121,7 +121,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
<#else>
|
||||
"ActorID": "${depot}${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
"ActorID": "${prefixdepot}${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
</#if>
|
||||
"Quantity": {
|
||||
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"${carrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
"ActorID":"${prefixcarrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID":"${carrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
"ActorID":"${prefixcarrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
</#if>
|
||||
}
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${preparation_order.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID": "${depot}${preparation_order.physical_depot_code?trim?json_string}"
|
||||
"ActorID": "${prefixdepot}${preparation_order.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
"ShipFromAcked": true,
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"ActorID": "${receipt.physical_depot_code?trim?json_string}"
|
||||
<#else>
|
||||
"ActorID": "${depot}${receipt.physical_depot_code?trim?json_string}"
|
||||
"ActorID": "${prefixdepot}${receipt.physical_depot_code?trim?json_string}"
|
||||
</#if>
|
||||
},
|
||||
"ShipToAcked": true,
|
||||
@ -42,7 +42,7 @@
|
||||
<#if uniqueness?? && uniqueness!="" >
|
||||
"Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code?trim?json_string}"},
|
||||
<#else>
|
||||
"Carrier" : {"ActorID": "${carrier}${receipt.carrier_informations.carrier_code?trim?json_string}"},
|
||||
"Carrier" : {"ActorID": "${prefixcarrier}${receipt.carrier_informations.carrier_code?trim?json_string}"},
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user