modifs uniqueness

This commit is contained in:
2024-09-16 16:12:43 +02:00
parent d91d15c1c9
commit 956105fc38
17 changed files with 309 additions and 51 deletions

View File

@@ -1,27 +1,53 @@
<#include "ReflexUtils.ftl">
<#include "HfRpConfig.ftl">
[
<#list reflexStockPicturesInterface.detailled_stock_list as stock>
{
"Header": {
"ProjectID": "${projectRP}"
"ProjectID": "${projectRP}"
},
"ID": {
"RefID": "${stock.physical_depot_code}"
},
"Payload": {
<#if text_language_rfx="fr">
<#if uniqueness?? && uniqueness!="" >
"ActorID": "${stock.physical_depot_code}"
<#else>
"ActorID": "DEP${stock.physical_depot_code}"
</#if>
<#else>
<#if uniqueness?? && uniqueness!="" >
"ActorID": "${stock.physical_depot_code}"
<#else>
"ActorID": "DEP${stock.physical_depot_code}"
</#if>
</#if>
},
"Payload": {
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
"Snapshot": {
"EndDateTime": {
"DateTime": "${generation_date}",
"AuthorTimeZone": "${time_zone_rfx}"
},
"DateTime": "${generation_date}",
"AuthorTimeZone": "${time_zone_rfx}"
},
<#if text_language_rfx="fr">
<#if uniqueness?? && uniqueness!="" >
"ID": "${stock.physical_depot_code}-${idSnapshot}",
"MessageNb": ${sum_elt}
<#else>
"ID": "DEP${stock.physical_depot_code}-${idSnapshot}",
</#if>
<#else>
<#if uniqueness?? && uniqueness!="" >
"ID": "${stock.physical_depot_code}-${idSnapshot}",
<#else>
"ID": "DEP${stock.physical_depot_code}-${idSnapshot}",
</#if>
</#if>
"MessageNb": ${sum_elt}
}
}
}
<#break>
</#list>
</#list>
]