modifs trim json
This commit is contained in:
parent
da8939ec74
commit
3ed530fb09
@ -22,7 +22,7 @@
|
||||
},
|
||||
|
||||
"Goods": {
|
||||
"ItemID": "${stock.item_code?json_string}",
|
||||
"ItemID": "${stock.item_code?trim?json_string}",
|
||||
"LVBranchID": "${stock.item_logistical_variant_code}",
|
||||
<#assign priority_date = stock.priority_date?datetime(rfx_date_format_default)?iso_utc />
|
||||
<#if (stock.priority_date!="") && (stock.priority_date?starts_with("00")== false) >
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${carrier.carrier_code?json_string}"
|
||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${carrier.carrier_code?json_string}"
|
||||
"RefID": "${carrier.carrier_code?trim?json_string}"
|
||||
},
|
||||
|
||||
"Payload": {}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${actor.code?json_string}"
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${actor.code?json_string}"
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
},
|
||||
|
||||
"Payload": {}
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${reflexMvtStockInterface.hd_number}"
|
||||
"RefID": "${reflexMvtStockInterface.hd_number?trim?json_string}"
|
||||
},
|
||||
"Payload": {
|
||||
"ReceivedContents" :[
|
||||
@ -18,7 +18,7 @@
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
},
|
||||
"Goods": {
|
||||
"ItemID": "${reflexMvtStockInterface.item_code?json_string}",
|
||||
"ItemID": "${reflexMvtStockInterface.item_code?trim?json_string}",
|
||||
"LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}",
|
||||
"PriorityDate": "${priority_date}",
|
||||
|
||||
@ -26,12 +26,12 @@
|
||||
<#include "RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl">
|
||||
},
|
||||
<#if reflexMvtStockInterface.receipt_reference!="">
|
||||
"ExecutionflowID": "${reflexMvtStockInterface.receipt_reference?json_string}",
|
||||
"ExecutionflowID": "${reflexMvtStockInterface.receipt_reference?trim?json_string}",
|
||||
<#else>
|
||||
"ExecutionflowID": "${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
|
||||
</#if>
|
||||
"LineID": "${reflexMvtStockInterface.receipt_line_number}",
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?json_string}",
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
"Quantity": {
|
||||
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
||||
"Value": ${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs}
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
},
|
||||
"Payload": {
|
||||
"Goods": {
|
||||
"ItemID": "${reflexMvtStockInterface.item_code?json_string}",
|
||||
"ItemID": "${reflexMvtStockInterface.item_code?trim?json_string}",
|
||||
"PriorityDate": "${ipg_priority_datetime}",
|
||||
|
||||
<#-- Segmentation keys inclusions -->
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
"LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}"
|
||||
},
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?json_string}",
|
||||
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
|
||||
"Movement": {
|
||||
|
||||
"DateTime": {
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${lv.item_code?json_string}"
|
||||
"RefID": "${lv.item_code?trim?json_string}"
|
||||
},
|
||||
"Payload": {
|
||||
"RemovedLogisticVariantIDs":["${lv.logistical_variant_code}"]
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${lv.item_code?json_string}"
|
||||
"RefID": "${lv.item_code?trim?json_string}"
|
||||
},
|
||||
"Payload": {
|
||||
"LogisticVariants": [
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${item.item_code?json_string}"
|
||||
"RefID": "${item.item_code?trim?json_string}"
|
||||
},
|
||||
"Payload": {
|
||||
"DescriptionsByLanguage": [{
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${item.item_code?json_string}"
|
||||
"RefID": "${item.item_code?trim?json_string}"
|
||||
},
|
||||
"Payload": {}
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?json_string}",
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${preparation_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?json_string}",
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${preparation_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?json_string}",
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${preparation_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?json_string}",
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${preparation_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?json_string}",
|
||||
"RefID": "${preparationStatusInterface.preparation_order_originator_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${preparation_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${actor.code?json_string}"
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${actor.code?json_string}"
|
||||
"RefID": "${actor.code?trim?json_string}"
|
||||
},
|
||||
|
||||
"Payload": {}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${depot.physical_depot_code?json_string}"
|
||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${depot.physical_depot_code?json_string}"
|
||||
"RefID": "${depot.physical_depot_code?trim?json_string}"
|
||||
},
|
||||
|
||||
"Payload": {}
|
||||
|
||||
@ -7,16 +7,16 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID":{
|
||||
"RefID": "${preparationOrder.preparation_line_lst[0].preparation_order_originator_reference?json_string}"
|
||||
"RefID": "${preparationOrder.preparation_line_lst[0].preparation_order_originator_reference?trim?json_string}"
|
||||
},
|
||||
"Payload":{
|
||||
"Carrier": {
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?json_string}"
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
}
|
||||
<#-- Add transport grade code
|
||||
<#if preparationOrder.transport_grade_code!="">
|
||||
,
|
||||
"CarrierService":"${preparationOrder.transport_grade_code?json_string}"
|
||||
"CarrierService":"${preparationOrder.transport_grade_code?trim?json_string}"
|
||||
</#if> -->
|
||||
}
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@
|
||||
"PreparedContents" :[
|
||||
{
|
||||
"Goods": {
|
||||
"ItemID": "${preparation_line.item_code?json_string}",
|
||||
"ItemID": "${preparation_line.item_code?trim?json_string}",
|
||||
"LVBranchID": "${preparation_line.item_lv_code?json_string}",
|
||||
<#if (despatched_ipg.ipg_manufacture_date?length != 0) && (despatched_ipg.ipg_manufacture_date?starts_with("00") == false)>
|
||||
<#assign priority_date = despatched_ipg.ipg_manufacture_date?datetime(rfx_date_format_default)?iso_utc />
|
||||
@ -104,13 +104,13 @@
|
||||
<#-- Segmentation Keys inclusion -->
|
||||
<#include "RFXtoRP_HsrPrepa_GoodsPrepared_SegmentationKeys.ftl">
|
||||
},
|
||||
"ExecutionflowID": "${preparation_line.preparation_order_originator_reference?json_string}",
|
||||
"ExecutionflowID": "${preparation_line.preparation_order_originator_reference?trim?json_string}",
|
||||
<#if (preparation_line.pro_originator_reference_line_number!0) != 0>
|
||||
"LineID": "${preparation_line.pro_originator_reference_line_number}",
|
||||
<#else>
|
||||
"LineID": "${preparation_line.pro_line_number!0}",
|
||||
</#if>
|
||||
"ActorID": "${preparationOrder.physical_depot_code?json_string}",
|
||||
"ActorID": "${preparationOrder.physical_depot_code?trim?json_string}",
|
||||
"Quantity": {
|
||||
"LVID": "${quantity_in_base_lv_RP_Cst}",
|
||||
"Value": ${despatched_ipg.quantity_lvs}
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID":{
|
||||
"RefID": "${preparationOrder.preparation_line_lst[0].preparation_order_originator_reference?json_string}"
|
||||
"RefID": "${preparationOrder.preparation_line_lst[0].preparation_order_originator_reference?trim?json_string}"
|
||||
},
|
||||
"Payload":{
|
||||
"Carrier": {
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?json_string}"
|
||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${despatched_ipg.consignment_unit_id?json_string}"
|
||||
"RefID": "${despatched_ipg.consignment_unit_id?trim?json_string}"
|
||||
},
|
||||
"Payload": {
|
||||
<#if despatched_ipg.carton_number != "000000000000000000">
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${preparation_order.originator_reference?json_string}",
|
||||
"RefID": "${preparation_order.originator_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${preparation_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${preparation_order.originator_reference?json_string}",
|
||||
"RefID": "${preparation_order.originator_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${pro_creation_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
@ -23,10 +23,10 @@
|
||||
<#include "RFXtoRP_HsrPro_ExecutionflowDetected_HeaderMetadata.ftl">,
|
||||
<#-- Add transport grade code
|
||||
<#if preparation_order.transport_grade_code!="">
|
||||
"CarrierService":"${preparation_order.transport_grade_code?json_string}",
|
||||
"CarrierService":"${preparation_order.transport_grade_code?trim?json_string}",
|
||||
</#if> -->
|
||||
"ShipFrom": {
|
||||
"ActorID": "${preparation_order.physical_depot_code?json_string}"
|
||||
"ActorID": "${preparation_order.physical_depot_code?trim?json_string}"
|
||||
},
|
||||
"ShipFromAcked": true,
|
||||
"ShipTo": {
|
||||
@ -89,7 +89,7 @@
|
||||
{
|
||||
"Goods":
|
||||
{
|
||||
"ItemID": "${preparation_order_line.item_code?json_string!"0"}",
|
||||
"ItemID": "${preparation_order_line.item_code?trim?json_string!"0"}",
|
||||
"LVBranchID": "${preparation_order_line.item_lv_code?json_string!"0"}",
|
||||
<#if (preparation_order_line.optional_attributes.forced_priority_date?length != 0) && (preparation_order_line.optional_attributes.forced_priority_date?starts_with("00") == false)>
|
||||
<#assign forced_priority_date = preparation_order_line.optional_attributes.forced_priority_date?datetime(rfx_date_format_default)?iso_utc />
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${receipt.receipt_reference?json_string}",
|
||||
"RefID": "${receipt.receipt_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${receipt_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${receipt.receipt_reference?json_string}",
|
||||
"RefID": "${receipt.receipt_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${receipt_creation_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
@ -25,16 +25,16 @@
|
||||
|
||||
"ShipFrom":
|
||||
{
|
||||
"ActorID": "${receipt.original_code?json_string}"
|
||||
"ActorID": "${receipt.original_code?trim?json_string}"
|
||||
},
|
||||
"ShipTo" :
|
||||
{
|
||||
"ActorID": "${receipt.physical_depot_code?json_string}"
|
||||
"ActorID": "${receipt.physical_depot_code?trim?json_string}"
|
||||
},
|
||||
"ShipToAcked": true,
|
||||
|
||||
<#if receipt.carrier_informations.carrier_code != "">
|
||||
"Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code?json_string}"},
|
||||
"Carrier" : {"ActorID": "${receipt.carrier_informations.carrier_code?trim?json_string}"},
|
||||
</#if>
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
{
|
||||
"Goods":
|
||||
{
|
||||
"ItemID": "${line.item_code?json_string!"0"}",
|
||||
"ItemID": "${line.item_code?trim?json_string!"0"}",
|
||||
"LVBranchID": "${line.item_lv_code?json_string!"0"}",
|
||||
<#if line.line_without_detail??>
|
||||
<#if (line.line_without_detail.priority_date?length != 0) && (line.line_without_detail.priority_date?starts_with("00") == false)>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${receipt.receipt_reference?json_string}",
|
||||
"RefID": "${receipt.receipt_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${receipt_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${receipt.receipt_reference?json_string}",
|
||||
"RefID": "${receipt.receipt_reference?trim?json_string}",
|
||||
"RefDate": {
|
||||
"DateTime": "${receipt_status_datetime}",
|
||||
"AuthorTimeZone": "${time_zone_rfx}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user