Merge branch 'release/1.2' into 'main'
MR->main See merge request r-d-technique/tiers/reflex-wms-connector!46
This commit is contained in:
commit
da5513612b
@ -30,7 +30,7 @@
|
|||||||
>
|
>
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.StockMoved>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.MovementCreated>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsaIpgMove_StockMoved.ftl">
|
<#include "RFXtoRP_HsaIpgMove_StockMoved.ftl">
|
||||||
|
|||||||
@ -20,7 +20,11 @@
|
|||||||
"Goods": {
|
"Goods": {
|
||||||
"ItemID": "${reflexMvtStockInterface.item_code?trim?json_string}",
|
"ItemID": "${reflexMvtStockInterface.item_code?trim?json_string}",
|
||||||
"LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}",
|
"LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}",
|
||||||
|
<#if (priority_date!="") && (priority_date?starts_with("00")== false) >
|
||||||
"PriorityDate": "${priority_date}",
|
"PriorityDate": "${priority_date}",
|
||||||
|
<#else>
|
||||||
|
"PriorityDate": "1970-01-01T00:00:00Z",
|
||||||
|
</#if>
|
||||||
|
|
||||||
<#-- Goods received Segmentation Keys inclusion -->
|
<#-- Goods received Segmentation Keys inclusion -->
|
||||||
<#include "RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl">
|
<#include "RFXtoRP_HsaIpgMove_GoodsReceived_SegmentationKeys.ftl">
|
||||||
|
|||||||
@ -16,8 +16,8 @@
|
|||||||
"Codes": [
|
"Codes": [
|
||||||
<#list lv.id_list as id>
|
<#list lv.id_list as id>
|
||||||
{
|
{
|
||||||
"Key": "${id.logistical_variant_ID_type_code?json_string!""}",
|
"Key": "${(id.logistical_variant_ID_type_code!"")?json_string}",
|
||||||
"Value": "${id.logistical_variant_ID_code?json_string!""}"
|
"Value": "${(id.logistical_variant_ID_code!"")?json_string}"
|
||||||
}<#sep>,</#sep>
|
}<#sep>,</#sep>
|
||||||
</#list>
|
</#list>
|
||||||
],
|
],
|
||||||
|
|||||||
@ -39,8 +39,8 @@
|
|||||||
"Codes": [
|
"Codes": [
|
||||||
<#list logistical_variant.id_list as id>
|
<#list logistical_variant.id_list as id>
|
||||||
{
|
{
|
||||||
"Key": "${id.logistical_variant_ID_type_code?json_string!""}",
|
"Key": "${(id.logistical_variant_ID_type_code!"")?json_string}",
|
||||||
"Value": "${id.logistical_variant_ID_code?json_string!""}"
|
"Value": "${(id.logistical_variant_ID_code!"")?json_string}"
|
||||||
}<#sep>,</#sep>
|
}<#sep>,</#sep>
|
||||||
</#list>
|
</#list>
|
||||||
],
|
],
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
"Payload": {
|
"Payload": {
|
||||||
"Information" :{
|
"Information" :{
|
||||||
<#if despatched_ipg.carton_number != "000000000000000000">
|
<#if despatched_ipg.carton_number != "000000000000000000">
|
||||||
"ContainerType": "${despatched_ipg.carton_type_code}"
|
"ContainerType": "${despatched_ipg.carton_type_code?json_string}"
|
||||||
<#if preparation_line.despatched_cartons_list?? >
|
<#if preparation_line.despatched_cartons_list?? >
|
||||||
<#list preparation_line.despatched_cartons_list?filter(l -> l?? && l.carton_number==despatched_ipg.carton_number) as dimensionCarton>
|
<#list preparation_line.despatched_cartons_list?filter(l -> l?? && l.carton_number==despatched_ipg.carton_number) as dimensionCarton>
|
||||||
,
|
,
|
||||||
|
|||||||
@ -52,23 +52,23 @@
|
|||||||
<#else>
|
<#else>
|
||||||
"Actor":
|
"Actor":
|
||||||
{
|
{
|
||||||
"Name" : "${preparation_order.address.name_or_company_name?json_string!""}",
|
"Name" : "${(preparation_order.address.name_or_company_name!"")?json_string}",
|
||||||
"Address" :
|
"Address" :
|
||||||
{
|
{
|
||||||
"City" : "${preparation_order.address.post_code_area_name?json_string!""}",
|
"City" : "${(preparation_order.address.post_code_area_name!"")?json_string}",
|
||||||
"CountryCode" : "${preparation_order.address.iso_country_code!""}",
|
"CountryCode" : "${preparation_order.address.iso_country_code!""}",
|
||||||
"PostalCode" : "${preparation_order.address.postal_code!""}",
|
"PostalCode" : "${preparation_order.address.postal_code!""}",
|
||||||
"StreetAddressOne" : "${preparation_order.address.street_and_number_and_po_box?json_string!""}",
|
"StreetAddressOne" : "${(preparation_order.address.street_and_number_and_po_box!"")?json_string}",
|
||||||
"StreetAddressTwo" : "${preparation_order.address.additional_address_data_1?json_string!""}",
|
"StreetAddressTwo" : "${(preparation_order.address.additional_address_data_1!"")?json_string}",
|
||||||
"StreetAddressThree" : "${preparation_order.address.additional_address_data_2?json_string!""}"
|
"StreetAddressThree" : "${(preparation_order.address.additional_address_data_2!"")?json_string}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Contact" :
|
"Contact" :
|
||||||
{
|
{
|
||||||
"FirstName" : "${preparation_order.address.first_name?json_string!""}",
|
"FirstName" : "${(preparation_order.address.first_name!"")?json_string}",
|
||||||
"LastName" : "${preparation_order.address.last_name?json_string!""}",
|
"LastName" : "${(preparation_order.address.last_name!"")?json_string}",
|
||||||
"Emails" : ${splitEmailsIntoArray(preparation_order.address.mail_address!""?json_string)},
|
"Emails" : ${splitEmailsIntoArray((preparation_order.address.mail_address!"")?json_string)},
|
||||||
"Phones" : ["${preparation_order.address.mobile_phone_number?json_string!""}","${preparation_order.address.land_line_phone_number?json_string!""}", "${preparation_order.address.fax_number?json_string!""}" ]
|
"Phones" : ["${(preparation_order.address.mobile_phone_number!"")?json_string}","${(preparation_order.address.land_line_phone_number!"")?json_string}", "${(preparation_order.address.fax_number!"")?json_string}" ]
|
||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
},
|
},
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
"RefID": "${id.refid}"
|
"RefID": "${id.refid?json_string}"
|
||||||
},
|
},
|
||||||
|
|
||||||
"Payload": {
|
"Payload": {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
"RefID": "${id.refid}"
|
"RefID": "${id.refid?json_string}"
|
||||||
},
|
},
|
||||||
|
|
||||||
"Payload": {
|
"Payload": {
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
{
|
{
|
||||||
"id" : {"refid" : "${executionflow.OrderID}"},
|
"id" : {"refid" : "${executionflow.OrderID?json_string}"},
|
||||||
"route" : "rest/public/v1/activities/{activity_code}/physical_depots/{physical_depot_code}/originators/{originator_code}/preparation_orders",
|
"route" : "rest/public/v1/activities/{activity_code}/physical_depots/{physical_depot_code}/originators/{originator_code}/preparation_orders",
|
||||||
"method" : "POST",
|
"method" : "POST",
|
||||||
"uri_substitutions": {
|
"uri_substitutions": {
|
||||||
@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"payload" :
|
"payload" :
|
||||||
{
|
{
|
||||||
"originator_reference": "${executionflow.OrderID}",
|
"originator_reference": "${executionflow.OrderID?json_string}",
|
||||||
"preparation_type_code": "${preparation_type_code}",
|
"preparation_type_code": "${preparation_type_code}",
|
||||||
"end_consignee_code": "${actorID}",
|
"end_consignee_code": "${actorID}",
|
||||||
<#if executionflow.RequestedMilestones?? && executionflow.RequestedMilestones.RequestedDeliveryDateTime??>
|
<#if executionflow.RequestedMilestones?? && executionflow.RequestedMilestones.RequestedDeliveryDateTime??>
|
||||||
@ -44,31 +44,33 @@
|
|||||||
"apt_with_end_consignee": "${apt_with_end_consignee_flag}",
|
"apt_with_end_consignee": "${apt_with_end_consignee_flag}",
|
||||||
"apt_with_intermediate": "false",
|
"apt_with_intermediate": "false",
|
||||||
"load_grouping": "${load_grouping}"
|
"load_grouping": "${load_grouping}"
|
||||||
},
|
}
|
||||||
<#if actorID == defaultactor >
|
<#if actorID == defaultactor >
|
||||||
|
,
|
||||||
"address": {
|
"address": {
|
||||||
"type_code": "${typecode}",
|
"type_code": "${typecode}",
|
||||||
"title_code" : "${titlecode}",
|
"title_code" : "${titlecode}",
|
||||||
"contact_type_code" : "${contacttypecode}",
|
"contact_type_code" : "${contacttypecode}",
|
||||||
"address_type_code" : "${adresstypecode}",
|
"address_type_code" : "${adresstypecode}",
|
||||||
"first_name": "${executionflow.ShipTo.Contact.FirstName!""?json_string}",
|
"first_name": "${(executionflow.ShipTo.Contact.FirstName!"")?json_string}",
|
||||||
"last_name" :"${executionflow.ShipTo.Contact.LastName!""?json_string}",
|
"last_name" :"${(executionflow.ShipTo.Contact.LastName!"")?json_string}",
|
||||||
"name_or_company_name" : "${executionflow.ShipTo.Contact.FirstName!""?json_string} ${executionflow.ShipTo.Contact.LastName!""?json_string}",
|
"name_or_company_name" : "${(executionflow.ShipTo.Contact.FirstName!"")?json_string} ${(executionflow.ShipTo.Contact.LastName!"")?json_string}",
|
||||||
<#if executionflow.ShipTo.Contact.Emails?? && executionflow.ShipTo.Contact.Emails[0]!="">
|
<#if executionflow.ShipTo.Contact.Emails?? && executionflow.ShipTo.Contact.Emails[0]!="">
|
||||||
"mail_address": "${executionflow.ShipTo.Contact.Emails[0]}",
|
"mail_address": "${executionflow.ShipTo.Contact.Emails[0]}",
|
||||||
</#if>
|
</#if>
|
||||||
<#if executionflow.ShipTo.Contact.Phones?? && executionflow.ShipTo.Contact.Phones[0]!="">
|
<#if executionflow.ShipTo.Contact.Phones?? && executionflow.ShipTo.Contact.Phones[0]!="">
|
||||||
"mobile_phone_number": "${executionflow.ShipTo.Contact.Phones[0]}",
|
"mobile_phone_number": "${executionflow.ShipTo.Contact.Phones[0]}",
|
||||||
</#if>
|
</#if>
|
||||||
"street_and_number_and_po_box": "${executionflow.ShipTo.Actor.Address.StreetAddressOne!""?json_string}",
|
"street_and_number_and_po_box": "${(executionflow.ShipTo.Actor.Address.StreetAddressOne!"")?json_string}",
|
||||||
"additional_address_data_1": "${executionflow.ShipTo.Actor.Address.StreetAddressTwo!""?json_string}",
|
"additional_address_data_1": "${(executionflow.ShipTo.Actor.Address.StreetAddressTwo!"")?json_string}",
|
||||||
"additional_address_data_2": "${executionflow.ShipTo.Actor.Address.StreetAddressThree!""?json_string}",
|
"additional_address_data_2": "${(executionflow.ShipTo.Actor.Address.StreetAddressThree!"")?json_string}",
|
||||||
"postal_code": "${executionflow.ShipTo.Actor.Address.PostalCode!""}",
|
"postal_code": "${(executionflow.ShipTo.Actor.Address.PostalCode!"")?json_string}",
|
||||||
"post_code_area_name" : "${executionflow.ShipTo.Actor.Address.City!""}",
|
"post_code_area_name" : "${(executionflow.ShipTo.Actor.Address.City!"")?json_string}",
|
||||||
"iso_country_code": "${executionflow.ShipTo.Actor.Address.CountryCode!""}"
|
"iso_country_code": "${(executionflow.ShipTo.Actor.Address.CountryCode!"")?json_string}"
|
||||||
},
|
}
|
||||||
</#if>
|
</#if>
|
||||||
<#if executionflow.Lines??>
|
<#if executionflow.Lines??>
|
||||||
|
,
|
||||||
"line_list": [
|
"line_list": [
|
||||||
<#list executionflow.Lines as line>
|
<#list executionflow.Lines as line>
|
||||||
<#-- ******* line MetaData and Segmentationkeys to maps ******** -->
|
<#-- ******* line MetaData and Segmentationkeys to maps ******** -->
|
||||||
@ -100,7 +102,8 @@
|
|||||||
}
|
}
|
||||||
<#sep>,</#sep>
|
<#sep>,</#sep>
|
||||||
</#list>
|
</#list>
|
||||||
</#if>
|
|
||||||
]
|
]
|
||||||
|
</#if>
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<#include "RPtoRFX_Receipt_DefaultHeaderData.ftl">
|
<#include "RPtoRFX_Receipt_DefaultHeaderData.ftl">
|
||||||
|
|
||||||
{
|
{
|
||||||
"id" : {"refid" : "${executionflow.OrderID}"},
|
"id" : {"refid" : "${executionflow.OrderID?json_string}"},
|
||||||
"route" : "rest/public/v1/activities/{activity_code}/physical_depots/{physical_depot_code}/originators/{originator_code}/receipts",
|
"route" : "rest/public/v1/activities/{activity_code}/physical_depots/{physical_depot_code}/originators/{originator_code}/receipts",
|
||||||
"method" : "POST",
|
"method" : "POST",
|
||||||
"uri_substitutions": {
|
"uri_substitutions": {
|
||||||
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"payload" :
|
"payload" :
|
||||||
{
|
{
|
||||||
"receipt_reference": "${executionflow.OrderID}",
|
"receipt_reference": "${executionflow.OrderID?json_string}",
|
||||||
"receipt_type": "${receipt_type}",
|
"receipt_type": "${receipt_type}",
|
||||||
"receipt_reason_code": "${receipt_reason_code}",
|
"receipt_reason_code": "${receipt_reason_code}",
|
||||||
"work_mode_code" : "${work_mode_code}",
|
"work_mode_code" : "${work_mode_code}",
|
||||||
@ -25,9 +25,10 @@
|
|||||||
</#if>
|
</#if>
|
||||||
"carrier_appointment_made": "false",
|
"carrier_appointment_made": "false",
|
||||||
"receipt_in_cross_docking": "false",
|
"receipt_in_cross_docking": "false",
|
||||||
"dock_occupation_duration": 1,
|
"dock_occupation_duration": 1
|
||||||
|
|
||||||
<#if executionflow.Lines??>
|
<#if executionflow.Lines??>
|
||||||
|
,
|
||||||
"line_list": [
|
"line_list": [
|
||||||
<#list executionflow.Lines as line>
|
<#list executionflow.Lines as line>
|
||||||
|
|
||||||
@ -62,6 +63,5 @@
|
|||||||
</#list>
|
</#list>
|
||||||
]
|
]
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user