You've already forked reflex-wms-connector
Compare commits
33 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0468700574 | |||
| fe35481144 | |||
| d21204a949 | |||
| 46421972a8 | |||
| ccca6d1592 | |||
| 68622896f0 | |||
| fea5691ddd | |||
| 2fb5dcd103 | |||
| 04253d939f | |||
| 5c0b112c39 | |||
| c3d1ceb0c5 | |||
| b80623e631 | |||
| 45e8c4fee2 | |||
| 23a87c1995 | |||
| a3a2fa3b23 | |||
| 22b26ac7d3 | |||
| af29a11b22 | |||
| 74b976b367 | |||
| 0b3f07add9 | |||
| 044fda9d16 | |||
| e8510d079c | |||
| aa19de32a5 | |||
| 2524859cd4 | |||
| 06147dd8d4 | |||
| 9cbacc0ebc | |||
| c31d6de4a2 | |||
| b3da874dd3 | |||
| 82dfc05cdb | |||
| eda5fe4e07 | |||
| 26654a9820 | |||
| 6b6cef5332 | |||
| d7c9c72762 | |||
| 87efb21e64 |
@@ -29,7 +29,12 @@
|
|||||||
"StreetAddressTwo" : "${carrier.carrier_structured_address.additionnal_data?json_string}",
|
"StreetAddressTwo" : "${carrier.carrier_structured_address.additionnal_data?json_string}",
|
||||||
"PostalCode" : "${carrier.carrier_structured_address.postal_code?json_string}",
|
"PostalCode" : "${carrier.carrier_structured_address.postal_code?json_string}",
|
||||||
"City" : "${carrier.carrier_structured_address.post_code_area_name?json_string}",
|
"City" : "${carrier.carrier_structured_address.post_code_area_name?json_string}",
|
||||||
"CountryCode" : "${carrier.carrier_structured_address.country_code?json_string}",
|
<#assign isCountryCode = JsonUtil.isCountryCode(carrier.carrier_structured_address.country_code?upper_case) />
|
||||||
|
<#if isCountryCode>
|
||||||
|
"CountryCode" : "${carrier.carrier_structured_address.country_code?upper_case?json_string}",
|
||||||
|
<#else>
|
||||||
|
"CountryCode" : "",
|
||||||
|
</#if>
|
||||||
"ProvinceCode": "${carrier.carrier_structured_address.territorial_div_code?json_string}",
|
"ProvinceCode": "${carrier.carrier_structured_address.territorial_div_code?json_string}",
|
||||||
"State": "${carrier.carrier_structured_address.country_designation?json_string}"
|
"State": "${carrier.carrier_structured_address.country_designation?json_string}"
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,12 @@
|
|||||||
"StreetAddressTwo" : "${actor.consignee_structured_address.additionnal_data?json_string}",
|
"StreetAddressTwo" : "${actor.consignee_structured_address.additionnal_data?json_string}",
|
||||||
"PostalCode" : "${actor.consignee_structured_address.postal_code?json_string}",
|
"PostalCode" : "${actor.consignee_structured_address.postal_code?json_string}",
|
||||||
"City" : "${actor.consignee_structured_address.post_code_area_name?json_string}",
|
"City" : "${actor.consignee_structured_address.post_code_area_name?json_string}",
|
||||||
"CountryCode" : "${actor.consignee_structured_address.country_code?json_string}",
|
<#assign isCountryCode = JsonUtil.isCountryCode(actor.consignee_structured_address.country_code?upper_case) />
|
||||||
|
<#if isCountryCode>
|
||||||
|
"CountryCode" : "${actor.consignee_structured_address.country_code?upper_case?json_string}",
|
||||||
|
<#else>
|
||||||
|
"CountryCode" : "",
|
||||||
|
</#if>
|
||||||
"ProvinceCode": "${actor.consignee_structured_address.territorial_div_code?json_string}",
|
"ProvinceCode": "${actor.consignee_structured_address.territorial_div_code?json_string}",
|
||||||
"State": "${actor.consignee_structured_address.country_designation?json_string}"
|
"State": "${actor.consignee_structured_address.country_designation?json_string}"
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
reflexMvtStockInterface.ipg_move_type == "260" ||
|
reflexMvtStockInterface.ipg_move_type == "260" ||
|
||||||
reflexMvtStockInterface.ipg_move_type == "290" ||
|
reflexMvtStockInterface.ipg_move_type == "290" ||
|
||||||
reflexMvtStockInterface.ipg_move_type == "300" ||
|
reflexMvtStockInterface.ipg_move_type == "300" ||
|
||||||
|
reflexMvtStockInterface.ipg_move_type == "350" ||
|
||||||
|
reflexMvtStockInterface.ipg_move_type == "370" ||
|
||||||
reflexMvtStockInterface.ipg_move_type == "400" ||
|
reflexMvtStockInterface.ipg_move_type == "400" ||
|
||||||
reflexMvtStockInterface.ipg_move_type == "410" ||
|
reflexMvtStockInterface.ipg_move_type == "410" ||
|
||||||
reflexMvtStockInterface.ipg_move_type == "420"
|
reflexMvtStockInterface.ipg_move_type == "420"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"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) >
|
<#if (priority_date!="") && (priority_date?starts_with("00")== false) >
|
||||||
"PriorityDate": "${priority_date}",
|
"PriorityDate": "${priority_date}",
|
||||||
<#else>
|
<#else>
|
||||||
"PriorityDate": "1970-01-01T00:00:00Z",
|
"PriorityDate": "1970-01-01T00:00:00Z",
|
||||||
</#if>
|
</#if>
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
"260":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
|
"260":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
|
||||||
"290":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
|
"290":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
|
||||||
"300":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
|
"300":"STOCK_MOVEMENT_TYPE_REQUALIFICATION",
|
||||||
|
"350":"STOCK_MOVEMENT_TYPE_USE_OF_GOODS",
|
||||||
|
"370":"STOCK_MOVEMENT_TYPE_USE_OF_GOODS",
|
||||||
"400":"STOCK_MOVEMENT_TYPE_FIX",
|
"400":"STOCK_MOVEMENT_TYPE_FIX",
|
||||||
"410":"STOCK_MOVEMENT_TYPE_FIX",
|
"410":"STOCK_MOVEMENT_TYPE_FIX",
|
||||||
"420":"STOCK_MOVEMENT_TYPE_REQUALIFICATION"}>
|
"420":"STOCK_MOVEMENT_TYPE_REQUALIFICATION"}>
|
||||||
|
|||||||
@@ -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>
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -28,7 +28,12 @@
|
|||||||
"StreetAddressTwo" : "${actor.supplier_structured_address.additionnal_data?json_string}",
|
"StreetAddressTwo" : "${actor.supplier_structured_address.additionnal_data?json_string}",
|
||||||
"PostalCode" : "${actor.supplier_structured_address.postal_code?json_string}",
|
"PostalCode" : "${actor.supplier_structured_address.postal_code?json_string}",
|
||||||
"City" : "${actor.supplier_structured_address.post_code_area_name?json_string}",
|
"City" : "${actor.supplier_structured_address.post_code_area_name?json_string}",
|
||||||
"CountryCode" : "${actor.supplier_structured_address.country_code?json_string}",
|
<#assign isCountryCode = JsonUtil.isCountryCode(actor.supplier_structured_address.country_code?upper_case) />
|
||||||
|
<#if isCountryCode>
|
||||||
|
"CountryCode" : "${actor.supplier_structured_address.country_code?upper_case?json_string}",
|
||||||
|
<#else>
|
||||||
|
"CountryCode" : "",
|
||||||
|
</#if>
|
||||||
"ProvinceCode": "${actor.supplier_structured_address.territorial_div_code?json_string}",
|
"ProvinceCode": "${actor.supplier_structured_address.territorial_div_code?json_string}",
|
||||||
"State": "${actor.supplier_structured_address.country_designation?json_string}"
|
"State": "${actor.supplier_structured_address.country_designation?json_string}"
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,12 @@
|
|||||||
"StreetAddressTwo" : "${depot.physical_depot_structured_address.additionnal_data?json_string}",
|
"StreetAddressTwo" : "${depot.physical_depot_structured_address.additionnal_data?json_string}",
|
||||||
"PostalCode" : "${depot.physical_depot_structured_address.postal_code?json_string}",
|
"PostalCode" : "${depot.physical_depot_structured_address.postal_code?json_string}",
|
||||||
"City" : "${depot.physical_depot_structured_address.post_code_area_name?json_string}",
|
"City" : "${depot.physical_depot_structured_address.post_code_area_name?json_string}",
|
||||||
"CountryCode" : "${depot.physical_depot_structured_address.country_code?json_string}",
|
<#assign isCountryCode = JsonUtil.isCountryCode(depot.physical_depot_structured_address.country_code?upper_case) />
|
||||||
|
<#if isCountryCode >
|
||||||
|
"CountryCode" : "${depot.physical_depot_structured_address.country_code?upper_case?json_string}",
|
||||||
|
<#else>
|
||||||
|
"CountryCode" : "",
|
||||||
|
</#if>
|
||||||
"ProvinceCode": "${depot.physical_depot_structured_address.territorial_div_code?json_string}",
|
"ProvinceCode": "${depot.physical_depot_structured_address.territorial_div_code?json_string}",
|
||||||
"State": "${depot.physical_depot_structured_address.country_designation?json_string}"
|
"State": "${depot.physical_depot_structured_address.country_designation?json_string}"
|
||||||
|
|
||||||
|
|||||||
9
RFXtoRP_HsrPrepa_HUsAdded_Metadata.ftl
Normal file
9
RFXtoRP_HsrPrepa_HUsAdded_Metadata.ftl
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<#-- use protobuf of class HsrPrepa to find Reflex WMS fields names -->
|
||||||
|
|
||||||
|
<#--
|
||||||
|
"MetaData" :[
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
-->
|
||||||
|
"MetaData": [ ]
|
||||||
@@ -33,7 +33,10 @@
|
|||||||
"Value": ${preparation_line.despatched_hds_list[0].hd_type_width}
|
"Value": ${preparation_line.despatched_hds_list[0].hd_type_width}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</#if>
|
</#if>,
|
||||||
|
<#-- HU Metadata inclusin inclusion -->
|
||||||
|
<#include "RFXtoRP_HsrPrepa_HUsAdded_Metadata.ftl">
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -28,22 +28,33 @@
|
|||||||
<#include "RFXtoRP_PrepOrder_ShipFromAcked.ftl">
|
<#include "RFXtoRP_PrepOrder_ShipFromAcked.ftl">
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
<#else>
|
<#else>
|
||||||
[
|
<#if preparationOrderPostResponse.status?? && preparationOrderPostResponse.status == "WARN">
|
||||||
{
|
[
|
||||||
<#assign restResponseBody = JsonUtil.decodeBase64(restResponsetMsg.body) />
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.PlatformLogCreate>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowShipFromAcked>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_PlatformLogCreate.ftl">
|
<#include "RFXtoRP_PrepOrder_ShipFromAcked.ftl">
|
||||||
},
|
}
|
||||||
{
|
]
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError>
|
<#else>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
[
|
||||||
"datas" :
|
{
|
||||||
<#include "RFXtoRP_RestResponseAllocationError.ftl">
|
<#assign restResponseBody = JsonUtil.decodeBase64(restResponsetMsg.body) />
|
||||||
}
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.PlatformLogCreate>
|
||||||
]
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RFXtoRP_PlatformLogCreate.ftl">
|
||||||
|
},
|
||||||
|
{
|
||||||
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowAllocationError>
|
||||||
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RFXtoRP_RestResponseAllocationError.ftl">
|
||||||
|
}
|
||||||
|
]
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#break>
|
<#break>
|
||||||
<#default>
|
<#default>
|
||||||
|
|||||||
@@ -52,21 +52,21 @@
|
|||||||
"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??>
|
||||||
|
|||||||
Reference in New Issue
Block a user