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,4 +1,5 @@
<#include "ReflexUtils.ftl">
<#include "HfRpConfig.ftl">
[
<#list reflexStockPicturesInterface.detailled_stock_list as stock>
{
@@ -6,19 +7,45 @@
"ProjectID": "${projectRP}"
},
"Payload": {
"ActorID": "${stock.physical_depot_code}",
<#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>
<#assign generation_date = RfxDateTimetoUTC(stock.generation_date,time_zone_offset_rfx) />
"Snapshot": {
"DateTime": {
"DateTime": "${generation_date}",
"AuthorTimeZone": "${time_zone_rfx}"
},
"ID": "${stock.physical_depot_code}-${idSnapshot}",
"Quantity":
{
"Value" : "${stock.quantity_in_base_lvs!"0"}",
"LVID": "${quantity_in_base_lv_RP_Cst}"
}
<#if text_language_rfx="fr">
<#if uniqueness?? && uniqueness!="" >
"ID": "${stock.physical_depot_code}-${idSnapshot}",
<#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>
"Quantity":
{
"Value" : "${stock.quantity_in_base_lvs!"0"}",
"LVID": "${quantity_in_base_lv_RP_Cst}"
}
},
"Goods": {