modifs uniqueness
This commit is contained in:
parent
d91d15c1c9
commit
956105fc38
@ -1,27 +1,53 @@
|
|||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
|
<#include "HfRpConfig.ftl">
|
||||||
|
|
||||||
[
|
[
|
||||||
<#list reflexStockPicturesInterface.detailled_stock_list as stock>
|
<#list reflexStockPicturesInterface.detailled_stock_list as stock>
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
"RefID": "${stock.physical_depot_code}"
|
<#if text_language_rfx="fr">
|
||||||
},
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
"Payload": {
|
"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>
|
||||||
|
</#if>
|
||||||
|
},
|
||||||
|
"Payload": {
|
||||||
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
|
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
|
||||||
"Snapshot": {
|
"Snapshot": {
|
||||||
"EndDateTime": {
|
"EndDateTime": {
|
||||||
"DateTime": "${generation_date}",
|
"DateTime": "${generation_date}",
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
},
|
},
|
||||||
|
<#if text_language_rfx="fr">
|
||||||
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
||||||
"MessageNb": ${sum_elt}
|
<#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>
|
||||||
|
</#if>
|
||||||
|
"MessageNb": ${sum_elt}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<#break>
|
<#break>
|
||||||
</#list>
|
</#list>
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
<#list reflexStockPicturesInterface.detailled_stock_list as stock>
|
<#list reflexStockPicturesInterface.detailled_stock_list as stock>
|
||||||
{
|
{
|
||||||
@ -6,19 +7,45 @@
|
|||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"Payload": {
|
"Payload": {
|
||||||
"ActorID": "${stock.physical_depot_code}",
|
<#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>
|
||||||
|
</#if>
|
||||||
|
|
||||||
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
|
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
|
||||||
"Snapshot": {
|
"Snapshot": {
|
||||||
"DateTime": {
|
"DateTime": {
|
||||||
"DateTime": "${generation_date}",
|
"DateTime": "${generation_date}",
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
},
|
},
|
||||||
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
<#if text_language_rfx="fr">
|
||||||
"Quantity":
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
{
|
"ID": "${stock.physical_depot_code}-${idSnapshot}",
|
||||||
"Value" : "${stock.quantity_in_base_lvs!"0"}",
|
<#else>
|
||||||
"LVID": "${quantity_in_base_lv_RP_Cst}"
|
"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>
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
"Quantity":
|
||||||
|
{
|
||||||
|
"Value" : "${stock.quantity_in_base_lvs!"0"}",
|
||||||
|
"LVID": "${quantity_in_base_lv_RP_Cst}"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"Goods": {
|
"Goods": {
|
||||||
|
|||||||
@ -1,13 +1,22 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
<#if uniqueness?? && uniqueness!="" >
|
<#if text_language_rfx="fr">
|
||||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
<#else>
|
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||||
"RefID": "CA${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>
|
||||||
</#if>
|
</#if>
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,24 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
<#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>
|
||||||
|
</#if>
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"Payload": {}
|
"Payload": {}
|
||||||
|
|||||||
@ -1,14 +1,24 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
<#if uniqueness?? && uniqueness!="" >
|
<#if text_language_rfx="fr">
|
||||||
"RefID": "${actor.code?trim?json_string}"
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
<#else>
|
"RefID": "${actor.code?trim?json_string}"
|
||||||
"RefID": "C${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>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"Payload": {
|
"Payload": {
|
||||||
|
|||||||
@ -1,10 +1,23 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
"RefID": "${actor.code?trim?json_string}"
|
<#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>
|
||||||
|
</#if>
|
||||||
},
|
},
|
||||||
|
|
||||||
"Payload": {}
|
"Payload": {}
|
||||||
|
|||||||
@ -29,22 +29,38 @@
|
|||||||
<#-- Goods received Segmentation Keys inclusion -->
|
<#-- Goods received Segmentation Keys inclusion -->
|
||||||
<#include "RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl">
|
<#include "RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl">
|
||||||
},
|
},
|
||||||
|
|
||||||
<#if reflexMvtStockInterface.receipt_reference!="">
|
<#if reflexMvtStockInterface.receipt_reference!="">
|
||||||
"ExecutionflowID": "${reflexMvtStockInterface.receipt_reference?trim?json_string}",
|
"ExecutionflowID": "${reflexMvtStockInterface.receipt_reference?trim?json_string}",
|
||||||
<#else>
|
<#else>
|
||||||
<#if uniqueness?? && uniqueness!="" >
|
<#if text_language_rfx="fr">
|
||||||
"ExecutionflowID": "${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
|
<#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>
|
<#else>
|
||||||
"ExecutionflowID": "D${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
|
<#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>
|
||||||
|
|
||||||
</#if>
|
</#if>
|
||||||
"LineID": "${reflexMvtStockInterface.receipt_line_number}",
|
"LineID": "${reflexMvtStockInterface.receipt_line_number}",
|
||||||
<#if uniqueness?? && uniqueness!="" >
|
<#if text_language_rfx="fr">
|
||||||
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||||
<#else>
|
<#else>
|
||||||
"ActorID": "D${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
"ActorID": "DEP${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||||
</#if>
|
</#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": {
|
"Quantity": {
|
||||||
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
||||||
|
|||||||
@ -42,11 +42,20 @@
|
|||||||
|
|
||||||
"LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}"
|
"LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}"
|
||||||
},
|
},
|
||||||
|
<#if text_language_rfx="fr">
|
||||||
<#if uniqueness?? && uniqueness!="" >
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||||
<#else>
|
<#else>
|
||||||
"ActorID": "D${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
"ActorID": "DEP${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||||
</#if>
|
</#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": {
|
"Movement": {
|
||||||
|
|
||||||
"DateTime": {
|
"DateTime": {
|
||||||
|
|||||||
@ -1,13 +1,22 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
<#if uniqueness?? && uniqueness!="" >
|
<#if text_language_rfx="fr">
|
||||||
"RefID": "${actor.code?trim?json_string}"
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
<#else>
|
"RefID": "${actor.code?trim?json_string}"
|
||||||
"RefID": "S${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>
|
||||||
</#if>
|
</#if>
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,23 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
"RefID": "${actor.code?trim?json_string}"
|
<#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>
|
||||||
|
</#if>
|
||||||
},
|
},
|
||||||
|
|
||||||
"Payload": {}
|
"Payload": {}
|
||||||
|
|||||||
@ -1,10 +1,24 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
<#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>
|
||||||
|
</#if>
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"Payload": {}
|
"Payload": {}
|
||||||
|
|||||||
@ -18,11 +18,20 @@
|
|||||||
},
|
},
|
||||||
"Payload":{
|
"Payload":{
|
||||||
"Carrier": {
|
"Carrier": {
|
||||||
<#if uniqueness?? && uniqueness!="" >
|
<#if text_language_rfx="fr">
|
||||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
|
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||||
<#else>
|
<#else>
|
||||||
"ActorID":"CA${preparationOrder.load_data.carrier_code?trim?json_string}"
|
"ActorID":"TRA${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||||
</#if>
|
</#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
|
<#-- Add transport grade code
|
||||||
<#if preparationOrder.transport_grade_code!="">
|
<#if preparationOrder.transport_grade_code!="">
|
||||||
|
|||||||
@ -74,7 +74,7 @@
|
|||||||
"Goods": {
|
"Goods": {
|
||||||
"ItemID": "${preparation_line.item_code?trim?json_string}",
|
"ItemID": "${preparation_line.item_code?trim?json_string}",
|
||||||
"LVBranchID": "${preparation_line.item_lv_code?json_string}",
|
"LVBranchID": "${preparation_line.item_lv_code?json_string}",
|
||||||
|
|
||||||
<#if (despatched_ipg.ipg_use_by_date?length != 0) && (despatched_ipg.ipg_use_by_date?starts_with("00")== false)>
|
<#if (despatched_ipg.ipg_use_by_date?length != 0) && (despatched_ipg.ipg_use_by_date?starts_with("00")== false)>
|
||||||
<#assign priority_date = despatched_ipg.ipg_use_by_date?datetime(rfx_date_format_default)?iso_utc />
|
<#assign priority_date = despatched_ipg.ipg_use_by_date?datetime(rfx_date_format_default)?iso_utc />
|
||||||
"PriorityDate": "${priority_date}",
|
"PriorityDate": "${priority_date}",
|
||||||
@ -116,7 +116,20 @@
|
|||||||
<#else>
|
<#else>
|
||||||
"LineID": "${preparation_line.pro_line_number!0}",
|
"LineID": "${preparation_line.pro_line_number!0}",
|
||||||
</#if>
|
</#if>
|
||||||
"ActorID": "${preparationOrder.physical_depot_code?trim?json_string}",
|
<#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}",
|
||||||
|
</#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": {
|
"Quantity": {
|
||||||
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
||||||
"Value": ${despatched_ipg.quantity_lvs}
|
"Value": ${despatched_ipg.quantity_lvs}
|
||||||
|
|||||||
@ -18,7 +18,21 @@
|
|||||||
},
|
},
|
||||||
"Payload":{
|
"Payload":{
|
||||||
"Carrier": {
|
"Carrier": {
|
||||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
<#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>
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,19 @@
|
|||||||
<#if preparationOrder.load_data?? && preparationOrder.load_data.carrier_code?? && preparationOrder.load_data.carrier_code!="" >
|
<#if preparationOrder.load_data?? && preparationOrder.load_data.carrier_code?? && preparationOrder.load_data.carrier_code!="" >
|
||||||
,
|
,
|
||||||
"HUCarrier":{
|
"HUCarrier":{
|
||||||
"ActorID": "${preparationOrder.load_data.carrier_code?json_string}"
|
<#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>
|
||||||
|
</#if>
|
||||||
}
|
}
|
||||||
|
|
||||||
</#if>
|
</#if>
|
||||||
|
|||||||
@ -26,7 +26,20 @@
|
|||||||
"CarrierService":"${preparation_order.transport_grade_code?trim?json_string}",
|
"CarrierService":"${preparation_order.transport_grade_code?trim?json_string}",
|
||||||
</#if> -->
|
</#if> -->
|
||||||
"ShipFrom": {
|
"ShipFrom": {
|
||||||
"ActorID": "${preparation_order.physical_depot_code?trim?json_string}"
|
<#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}"
|
||||||
|
</#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,
|
"ShipFromAcked": true,
|
||||||
"ShipTo": {
|
"ShipTo": {
|
||||||
@ -48,7 +61,19 @@
|
|||||||
preparation_order.address.territorial_division_code == "" &&
|
preparation_order.address.territorial_division_code == "" &&
|
||||||
preparation_order.address.postal_code == "" &&
|
preparation_order.address.postal_code == "" &&
|
||||||
preparation_order.address.iso_country_code == "">
|
preparation_order.address.iso_country_code == "">
|
||||||
"ActorID": "${preparation_order.end_consignee_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>
|
||||||
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
"Actor":
|
"Actor":
|
||||||
{
|
{
|
||||||
|
|||||||
@ -29,12 +29,37 @@
|
|||||||
},
|
},
|
||||||
"ShipTo" :
|
"ShipTo" :
|
||||||
{
|
{
|
||||||
"ActorID": "${receipt.physical_depot_code?trim?json_string}"
|
<#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>
|
||||||
|
|
||||||
},
|
},
|
||||||
"ShipToAcked": true,
|
"ShipToAcked": true,
|
||||||
|
|
||||||
<#if receipt.carrier_informations.carrier_code != "">
|
<#if receipt.carrier_informations.carrier_code != "">
|
||||||
"Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code?trim?json_string}"},
|
<#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}"},
|
||||||
|
</#if>
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user