You've already forked reflex-wms-connector
Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5948467818 | |||
| c63e4ff5c8 | |||
| 457cfc85c2 | |||
| 6809b32410 | |||
| 37a5e64e83 | |||
| 2f31833bc3 | |||
| cff0f18d8a | |||
| 22b78b4ffe | |||
| 25bf3110e9 | |||
| 0a32ead29a | |||
| 46a9dc8996 | |||
| 1eb262c91c | |||
| 2588fda3a8 | |||
| d060d3eb10 | |||
| 28e99e9a2b | |||
| 78b0b467a3 | |||
| eca09f2e9e | |||
| cfb8e2ab5a | |||
| d1512d4269 | |||
| 264f9131d0 | |||
| fd9f248619 | |||
| 0fff71b759 | |||
| 196ab387ac | |||
| 5cafa068a7 | |||
| 6f287e878a | |||
| c3a23254b1 | |||
| c47672b8cc | |||
| 12483253f1 | |||
| f0f6e39407 | |||
| fb0bab260a | |||
| 040ba2a392 | |||
| 753de14f97 |
@@ -14,7 +14,6 @@
|
|||||||
<#-- exclusion of the cases of an IPG move with quantity = 0 (weight modification) -->
|
<#-- exclusion of the cases of an IPG move with quantity = 0 (weight modification) -->
|
||||||
|
|
||||||
<#if reflexMvtStockInterface.ipg_move_quantity_in_base_lvs != 0>
|
<#if reflexMvtStockInterface.ipg_move_quantity_in_base_lvs != 0>
|
||||||
|
|
||||||
<#-- IPG moves translated into Stock moves -->
|
<#-- IPG moves translated into Stock moves -->
|
||||||
<#if reflexMvtStockInterface.ipg_move_type == "130" ||
|
<#if reflexMvtStockInterface.ipg_move_type == "130" ||
|
||||||
reflexMvtStockInterface.ipg_move_type == "200" ||
|
reflexMvtStockInterface.ipg_move_type == "200" ||
|
||||||
@@ -41,7 +40,8 @@
|
|||||||
<#-- IPG moves translated into goods received (all type of receipt) -->
|
<#-- IPG moves translated into goods received (all type of receipt) -->
|
||||||
<#if (reflexMvtStockInterface.ipg_move_type == "100" ||
|
<#if (reflexMvtStockInterface.ipg_move_type == "100" ||
|
||||||
reflexMvtStockInterface.ipg_move_type == "110" ||
|
reflexMvtStockInterface.ipg_move_type == "110" ||
|
||||||
reflexMvtStockInterface.ipg_move_type == "120") && reflexMvtStockInterface.receipt_reference?? && reflexMvtStockInterface.receipt_reference!="">
|
reflexMvtStockInterface.ipg_move_type == "120") >
|
||||||
|
<#if reflexMvtStockInterface.receipt_reference?? && reflexMvtStockInterface.receipt_reference!="">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitGoodsReceived>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitGoodsReceived>
|
||||||
@@ -51,14 +51,13 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
<#else>
|
<#else>
|
||||||
<#if reflexMvtStockInterface.receipt_reference?? && reflexMvtStockInterface.receipt_reference!="">
|
|
||||||
<#-- Case of IPG move type volontarilly ignored-->
|
<#-- Case of IPG move type volontarilly ignored-->
|
||||||
<#stop " Reference receipt is empty">
|
<#stop " Reference receipt is empty">
|
||||||
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#stop>
|
<#stop>
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
|
||||||
<#else>
|
<#else>
|
||||||
<#-- cases of an IPG move with quantity = 0 (weight modification)-->
|
<#-- cases of an IPG move with quantity = 0 (weight modification)-->
|
||||||
<#stop>
|
<#stop>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<#-- input : message RFX -->
|
<#-- input : message RFX -->
|
||||||
<#-- project : projectId in ReflexPlatform -->
|
<#-- project : projectId in ReflexPlatform -->
|
||||||
<#-- organisation : organisationtId in ReflexPlatform -->
|
<#-- organisation : organisationtId in ReflexPlatform -->
|
||||||
|
<#include "ReflexUtils.ftl">
|
||||||
<#assign cloudEventMsg = JsonUtil.jsonToMap(input)>
|
<#assign cloudEventMsg = JsonUtil.jsonToMap(input)>
|
||||||
<#assign projectRP = project>
|
<#assign projectRP = project>
|
||||||
<#assign organisationRP = organisation>
|
<#assign organisationRP = organisation>
|
||||||
@@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list?? && l.preparation_order_originator_reference!="") as preparation_line>
|
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list?? && l.preparation_order_originator_reference!="") as preparation_line>
|
||||||
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
||||||
|
<#assign HUadded_packing_datetime = RfxDateTimetoUTC(preparation_line.confirmation_datetime,time_zone_offset_rfx) />
|
||||||
<#if despatched_ipg.consignment_unit_id!="">
|
<#if despatched_ipg.consignment_unit_id!="">
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
@@ -74,7 +75,6 @@
|
|||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
<#-- <#sep>,</#sep> -->
|
|
||||||
</#list>
|
</#list>
|
||||||
]
|
]
|
||||||
<#else>
|
<#else>
|
||||||
|
|||||||
@@ -1,23 +1,25 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
<#include "HfRpConfig.ftl">
|
||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
[
|
[
|
||||||
<#assign dispatched_datetime = RfxDateTimetoUTC(preparationOrder.stock_despatch_at_preparation_datetime,time_zone_offset_rfx) />
|
<#assign dispatched3_datetime = RfxDateTimetoUTC(preparationOrder.stock_despatch_at_preparation_datetime,time_zone_offset_rfx) />
|
||||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line>
|
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line3>
|
||||||
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
<#list preparation_line3.despatched_ipg_list?filter(j ->j.carton_number!="000000000000000000") as despatched_ipg3>
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
"RefID": "${despatched_ipg.carton_number}",
|
"RefID": "${despatched_ipg3.carton_number}",
|
||||||
"RefDate": {
|
"RefDate": {
|
||||||
"DateTime": "${dispatched_datetime}",
|
"DateTime": "${dispatched3_datetime}",
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Payload": { }
|
"Payload": { }
|
||||||
}<#sep>,</#sep>
|
}<#sep>,</#sep>
|
||||||
</#list>
|
</#list>
|
||||||
|
<#if preparation_line3.despatched_ipg_list?filter(j ->j.carton_number!="000000000000000000")?size!=0 >
|
||||||
<#sep>,</#sep>
|
<#sep>,</#sep>
|
||||||
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
<#include "HfRpConfig.ftl">
|
||||||
|
|
||||||
[
|
[
|
||||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list?? && l.preparation_order_originator_reference!="") as preparation_line>
|
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list?? && l.preparation_order_originator_reference!="") as preparation_line>
|
||||||
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
||||||
|
<#assign packing_datetime = RfxDateTimetoUTC(preparation_line.confirmation_datetime,time_zone_offset_rfx) />
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
|
"RefDate": {
|
||||||
|
"AuthorTimeZone": "${time_zone_rfx}",
|
||||||
|
"DateTime": "${packing_datetime}"
|
||||||
|
},
|
||||||
<#if despatched_ipg.carton_number != "000000000000000000">
|
<#if despatched_ipg.carton_number != "000000000000000000">
|
||||||
"RefID": "${despatched_ipg.carton_number}"
|
"RefID": "${despatched_ipg.carton_number}"
|
||||||
<#else>
|
<#else>
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
<#include "HfRpConfig.ftl">
|
||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
[
|
[
|
||||||
|
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
|
"RefDate": {
|
||||||
|
"AuthorTimeZone": "${time_zone_rfx}",
|
||||||
|
"DateTime": "${HUadded_packing_datetime}"
|
||||||
|
},
|
||||||
"RefID": "${despatched_ipg.hd_number}"
|
"RefID": "${despatched_ipg.hd_number}"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -16,16 +16,18 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign preparation_order = JsonUtil.jsonToMap(dataRfx)>
|
<#assign preparation_order = JsonUtil.jsonToMap(dataRfx)>
|
||||||
[
|
[
|
||||||
{
|
|
||||||
<#if preparation_order.originator_reference?? && preparation_order.originator_reference!="">
|
<#if preparation_order.originator_reference?? && preparation_order.originator_reference!="">
|
||||||
<#-- check preparation type code (internal order and reservation are ignored) -->
|
<#-- check preparation type code (internal order and reservation are ignored) -->
|
||||||
<#if preparation_order.preparation_type_code == "010" || preparation_order.preparation_type_code == "030">
|
<#if preparation_order.preparation_type_code == "010" || preparation_order.preparation_type_code == "030">
|
||||||
<#-- Only if preparation order not confirmed -->
|
<#-- Only if preparation order not confirmed -->
|
||||||
<#if preparation_order.preparation_order_confirmed == "false" >
|
<#if preparation_order.preparation_order_confirmed == "false" >
|
||||||
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsrPro_ExecutionflowDetected.ftl">
|
<#include "RFXtoRP_HsrPro_ExecutionflowDetected.ftl">
|
||||||
|
}
|
||||||
<#else>
|
<#else>
|
||||||
<#stop "preparation order already confirmed">
|
<#stop "preparation order already confirmed">
|
||||||
</#if>
|
</#if>
|
||||||
@@ -36,7 +38,7 @@
|
|||||||
<#else>
|
<#else>
|
||||||
<#stop "PRO reference is empty">
|
<#stop "PRO reference is empty">
|
||||||
</#if>
|
</#if>
|
||||||
}
|
|
||||||
|
|
||||||
]
|
]
|
||||||
<#break>
|
<#break>
|
||||||
@@ -46,7 +48,6 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign preparation_order = JsonUtil.jsonToMap(dataRfx)>
|
<#assign preparation_order = JsonUtil.jsonToMap(dataRfx)>
|
||||||
[
|
[
|
||||||
{
|
|
||||||
<#if preparation_order.originator_reference?? && preparation_order.originator_reference!="">
|
<#if preparation_order.originator_reference?? && preparation_order.originator_reference!="">
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowCancelled>
|
||||||
@@ -57,7 +58,6 @@
|
|||||||
<#else>
|
<#else>
|
||||||
<#stop "PRO reference is empty">
|
<#stop "PRO reference is empty">
|
||||||
</#if>
|
</#if>
|
||||||
}
|
|
||||||
]
|
]
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,18 @@
|
|||||||
<#include "RPtoRFX_PrepOrder_DefaultHeaderData.ftl">
|
<#include "RPtoRFX_PrepOrder_DefaultHeaderData.ftl">
|
||||||
|
<#-- Valeurs par défaut Adresse -->
|
||||||
|
<#-- Default values -->
|
||||||
|
<#assign typecode ="010">
|
||||||
|
<#assign titlecode ="1">
|
||||||
|
<#assign contacttypecode ="010">
|
||||||
|
<#assign adresstypecode ="010">
|
||||||
|
<#-- Si vous utilisez des acteurs non référencés, il faudra créer un destinataire "VIZ" dans Reflex WMS pour utiliser cette fonctionnalité -->
|
||||||
|
<#-- If you are using unreferenced actors, you will need to create a "VIZ" consignee in Reflex WMS to use this feature -->
|
||||||
|
<#assign defaultactor ="VIZ">
|
||||||
|
<#if executionflow.ShipTo.ActorID?? && executionflow.ShipTo.ActorID!="">
|
||||||
|
<#assign actorID = executionflow.ShipTo.ActorID >
|
||||||
|
<#else>
|
||||||
|
<#assign actorID = defaultactor >
|
||||||
|
</#if>
|
||||||
|
|
||||||
{
|
{
|
||||||
"id" : {"refid" : "${executionflow.OrderID}"},
|
"id" : {"refid" : "${executionflow.OrderID}"},
|
||||||
@@ -13,7 +27,7 @@
|
|||||||
{
|
{
|
||||||
"originator_reference": "${executionflow.OrderID}",
|
"originator_reference": "${executionflow.OrderID}",
|
||||||
"preparation_type_code": "${preparation_type_code}",
|
"preparation_type_code": "${preparation_type_code}",
|
||||||
"end_consignee_code": "${executionflow.ShipTo.ActorID!""}",
|
"end_consignee_code": "${actorID}",
|
||||||
<#if executionflow.RequestedMilestones?? && executionflow.RequestedMilestones.RequestedDeliveryDateTime??>
|
<#if executionflow.RequestedMilestones?? && executionflow.RequestedMilestones.RequestedDeliveryDateTime??>
|
||||||
"requested_delivery_start_datetime": "${DateTimeUTCtoRfxLocale(executionflow.RequestedMilestones.RequestedDeliveryDateTime.DateTime,time_zone_rfx)}",
|
"requested_delivery_start_datetime": "${DateTimeUTCtoRfxLocale(executionflow.RequestedMilestones.RequestedDeliveryDateTime.DateTime,time_zone_rfx)}",
|
||||||
<#else>
|
<#else>
|
||||||
@@ -31,16 +45,26 @@
|
|||||||
"apt_with_intermediate": "false",
|
"apt_with_intermediate": "false",
|
||||||
"load_grouping": "${load_grouping}"
|
"load_grouping": "${load_grouping}"
|
||||||
},
|
},
|
||||||
<#if executionflow.ShipTo.ActorID == "">
|
<#if actorID == defaultactor >
|
||||||
"address": {
|
"address": {
|
||||||
|
"type_code": "${typecode}",
|
||||||
|
"title_code" : "${titlecode}",
|
||||||
|
"contact_type_code" : "${contacttypecode}",
|
||||||
|
"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}",
|
||||||
"mail_address": "${executionflow.ShipTo.Actor.Emails[0]!""}",
|
"name_or_company_name" : "${executionflow.ShipTo.Contact.FirstName!""?json_string} ${executionflow.ShipTo.Contact.LastName!""?json_string}",
|
||||||
"mobile_phone_number": "${executionflow.ShipTo.Actor.Phones[0]!""}",
|
<#if executionflow.ShipTo.Contact.Emails?? && executionflow.ShipTo.Contact.Emails[0]!="">
|
||||||
|
"mail_address": "${executionflow.ShipTo.Contact.Emails[0]}",
|
||||||
|
</#if>
|
||||||
|
<#if executionflow.ShipTo.Contact.Phones?? && executionflow.ShipTo.Contact.Phones[0]!="">
|
||||||
|
"mobile_phone_number": "${executionflow.ShipTo.Contact.Phones[0]}",
|
||||||
|
</#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!""}",
|
||||||
|
"post_code_area_name" : "${executionflow.ShipTo.Actor.Address.City!""}",
|
||||||
"iso_country_code": "${executionflow.ShipTo.Actor.Address.CountryCode!""}"
|
"iso_country_code": "${executionflow.ShipTo.Actor.Address.CountryCode!""}"
|
||||||
},
|
},
|
||||||
</#if>
|
</#if>
|
||||||
@@ -73,10 +97,10 @@
|
|||||||
"substitution_possible": "false"
|
"substitution_possible": "false"
|
||||||
-->
|
-->
|
||||||
|
|
||||||
}<#sep>,</#sep>
|
}
|
||||||
|
<#sep>,</#sep>
|
||||||
</#list>
|
</#list>
|
||||||
</#if>
|
</#if>
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,8 +23,22 @@
|
|||||||
<#assign protected_flag ="false"/>
|
<#assign protected_flag ="false"/>
|
||||||
<#assign automatic_generation_flag ="false"/>
|
<#assign automatic_generation_flag ="false"/>
|
||||||
<#assign apt_with_end_consignee_flag="false"/>
|
<#assign apt_with_end_consignee_flag="false"/>
|
||||||
<#assign load_grouping = "DEFAUT"/>
|
|
||||||
|
<#-- A supprimer si utilisation de la table de correspondance-->
|
||||||
|
<#--To be deleted if using the correspondence table-->
|
||||||
|
<#assign load_grouping = "default">
|
||||||
|
|
||||||
|
|
||||||
|
<#-- Table de correspondance Transporteur/Code regroupement chargement,
|
||||||
|
affectation à un chargement si paramétrage regroupement chargement+plan de base distribution-->
|
||||||
|
<#--Carrier / Load Grouping Code Correspondence Table,
|
||||||
|
Assigning to a load if you set up Load Grouping+Distribution Master Plan-->
|
||||||
|
<#-- Example -->
|
||||||
|
<#--<#if executionflow.Carrier.ActorID == "TEST" >
|
||||||
|
<#assign load_grouping = "TEST">
|
||||||
|
<#else>
|
||||||
|
<#assign load_grouping = "default">
|
||||||
|
</#if>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user