changement de statut uniquement sur HsrProStatus
This commit is contained in:
parent
31b007120a
commit
cd858cab4f
@ -39,7 +39,7 @@
|
||||
<#include "RFXtoRP_HsaProStatus_PreparationStarted.ftl">
|
||||
}
|
||||
<#else>
|
||||
<#-- **Preparation to package (500) and preparationcompleted (550)** -->
|
||||
<#-- **Preparation to package (500) and preparation completed (550)** -->
|
||||
<#if preparationStatusInterface.preparation_status_type == "100" &&
|
||||
(preparationStatusInterface.preparation_status_code == "500" ||
|
||||
preparationStatusInterface.preparation_status_code == "550")>
|
||||
|
||||
@ -27,12 +27,6 @@
|
||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||
"datas" :
|
||||
<#include "RFXtoRP_HsrPrepa_HandlingUnitDispatched.ftl">
|
||||
},
|
||||
{
|
||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowTransportStarted>
|
||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||
"datas" :
|
||||
<#include "RFXtoRP_HsrPrepa_TransportStarted.ftl">
|
||||
}
|
||||
]
|
||||
<#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>
|
||||
]
|
||||
|
||||
@ -21,24 +21,17 @@
|
||||
<#if order.preparation_type_code == "010" ||
|
||||
order.preparation_type_code == "030">
|
||||
|
||||
<#-- Preparation order not confirmed -->
|
||||
<#-- Only if preparation order not confirmed -->
|
||||
<#if order.preparation_order_confirmed == "false" >
|
||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||
"datas" :
|
||||
<#include "RFXtoRP_HsrPro_ExecutionflowDetected.ftl">
|
||||
|
||||
<#-- Preparation order confirmed -->
|
||||
<#else>
|
||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.PreparationCompleted>
|
||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||
"datas" :
|
||||
<#include "RFXtoRP_HsrPro_PreparationCompleted.ftl">
|
||||
</#if>
|
||||
|
||||
<#else>
|
||||
<#stop "preparation type not supported">
|
||||
</#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,6 +49,9 @@
|
||||
"datas" :
|
||||
<#include "RFXtoRP_HsrReceiptList_ReceiptCompleted.ftl">
|
||||
}
|
||||
<#else>
|
||||
<#if receipt.receipt_type = "030">
|
||||
<#stop "ignored message because receipt type = transfert">
|
||||
<#else>
|
||||
{
|
||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
||||
@ -64,6 +67,7 @@
|
||||
|
||||
}
|
||||
</#if>
|
||||
</#if>
|
||||
]
|
||||
<#break>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user