changement de statut uniquement sur HsrProStatus
This commit is contained in:
parent
31b007120a
commit
cd858cab4f
@ -39,7 +39,7 @@
|
|||||||
<#include "RFXtoRP_HsaProStatus_PreparationStarted.ftl">
|
<#include "RFXtoRP_HsaProStatus_PreparationStarted.ftl">
|
||||||
}
|
}
|
||||||
<#else>
|
<#else>
|
||||||
<#-- **Preparation to package (500) and preparationcompleted (550)** -->
|
<#-- **Preparation to package (500) and preparation completed (550)** -->
|
||||||
<#if preparationStatusInterface.preparation_status_type == "100" &&
|
<#if preparationStatusInterface.preparation_status_type == "100" &&
|
||||||
(preparationStatusInterface.preparation_status_code == "500" ||
|
(preparationStatusInterface.preparation_status_code == "500" ||
|
||||||
preparationStatusInterface.preparation_status_code == "550")>
|
preparationStatusInterface.preparation_status_code == "550")>
|
||||||
|
|||||||
@ -27,13 +27,7 @@
|
|||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsrPrepa_HandlingUnitDispatched.ftl">
|
<#include "RFXtoRP_HsrPrepa_HandlingUnitDispatched.ftl">
|
||||||
},
|
}
|
||||||
{
|
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowTransportStarted>
|
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
|
||||||
"datas" :
|
|
||||||
<#include "RFXtoRP_HsrPrepa_TransportStarted.ftl">
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
|
|||||||
@ -1,24 +0,0 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
|
||||||
<#include "ReflexUtils.ftl">
|
|
||||||
<#assign preparation_status_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>
|
|
||||||
{
|
|
||||||
"Header": {
|
|
||||||
"ProjectID": "${projectRP}"
|
|
||||||
},
|
|
||||||
"ID": {
|
|
||||||
"RefID": "${preparation_line.preparation_order_originator_reference}",
|
|
||||||
"RefDate": {
|
|
||||||
"DateTime": "${preparation_status_datetime}",
|
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"Payload": {}
|
|
||||||
|
|
||||||
}
|
|
||||||
<#sep>,</#sep>
|
|
||||||
</#list>
|
|
||||||
]
|
|
||||||
|
|
||||||
@ -19,26 +19,19 @@
|
|||||||
{
|
{
|
||||||
<#-- check preparation type code (internal order and reservation are ignored) -->
|
<#-- check preparation type code (internal order and reservation are ignored) -->
|
||||||
<#if order.preparation_type_code == "010" ||
|
<#if order.preparation_type_code == "010" ||
|
||||||
order.preparation_type_code == "030">
|
order.preparation_type_code == "030">
|
||||||
|
|
||||||
<#-- Preparation order not confirmed -->
|
<#-- Only if preparation order not confirmed -->
|
||||||
<#if order.preparation_order_confirmed == "false" >
|
<#if 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">
|
||||||
|
|
||||||
<#-- Preparation order confirmed -->
|
|
||||||
<#else>
|
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationCompleted>
|
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
|
||||||
"datas" :
|
|
||||||
<#include "RFXtoRP_HsrPro_PreparationCompleted.ftl">
|
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<#else>
|
<#else>
|
||||||
<#stop "preparation type not supported">
|
<#stop "preparation type not supported">
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,20 +0,0 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
|
||||||
<#include "ReflexUtils.ftl">
|
|
||||||
<#assign preparation_status_datetime = RfxDateTimetoUTC(order.confirmation_datetime,time_zone_offset_rfx) />
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"Header": {
|
|
||||||
"ProjectID": "${projectRP}"
|
|
||||||
},
|
|
||||||
"ID": {
|
|
||||||
"RefID": "${order.originator_reference}",
|
|
||||||
"RefDate": {
|
|
||||||
"DateTime": "${preparation_status_datetime}",
|
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"Payload": {}
|
|
||||||
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@ -49,7 +49,10 @@
|
|||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsrReceiptList_ReceiptCompleted.ftl">
|
<#include "RFXtoRP_HsrReceiptList_ReceiptCompleted.ftl">
|
||||||
}
|
}
|
||||||
<#else>
|
<#else>
|
||||||
|
<#if receipt.receipt_type = "030">
|
||||||
|
<#stop "ignored message because receipt type = transfert">
|
||||||
|
<#else>
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
@ -64,6 +67,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
|
</#if>
|
||||||
]
|
]
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user