This commit is contained in:
Laurie MONTANT 2024-09-16 15:25:10 +02:00
parent a8b044fdba
commit 550c0047da
6 changed files with 37 additions and 7 deletions

View File

@ -4,7 +4,11 @@
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
<#if uniqueness?? && uniqueness!="" >
"RefID": "${carrier.carrier_code?trim?json_string}" "RefID": "${carrier.carrier_code?trim?json_string}"
<#else>
"RefID": "CA${carrier.carrier_code?trim?json_string}"
</#if>
}, },
"Payload": { "Payload": {

View File

@ -4,7 +4,11 @@
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
<#if uniqueness?? && uniqueness!="" >
"RefID": "${actor.code?trim?json_string}" "RefID": "${actor.code?trim?json_string}"
<#else>
"RefID": "C${actor.code?trim?json_string}"
</#if>
}, },
"Payload": { "Payload": {

View File

@ -32,10 +32,20 @@
<#if reflexMvtStockInterface.receipt_reference!=""> <#if reflexMvtStockInterface.receipt_reference!="">
"ExecutionflowID": "${reflexMvtStockInterface.receipt_reference?trim?json_string}", "ExecutionflowID": "${reflexMvtStockInterface.receipt_reference?trim?json_string}",
<#else> <#else>
<#if uniqueness?? && uniqueness!="" >
"ExecutionflowID": "${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}", "ExecutionflowID": "${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
<#else>
"ExecutionflowID": "D${reflexMvtStockInterface.physical_depot_code}${reflexMvtStockInterface.activity_code}${reflexMvtStockInterface.ipg_move_year_number}${reflexMvtStockInterface.extended_ipg_move_number}",
</#if>
</#if> </#if>
"LineID": "${reflexMvtStockInterface.receipt_line_number}", "LineID": "${reflexMvtStockInterface.receipt_line_number}",
<#if uniqueness?? && uniqueness!="" >
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}", "ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
<#else>
"ActorID": "D${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
</#if>
"Quantity": { "Quantity": {
"LVID": "${quantity_in_base_lv_RP_Cst}", "LVID": "${quantity_in_base_lv_RP_Cst}",
"Value": ${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs} "Value": ${reflexMvtStockInterface.ipg_move_quantity_in_base_lvs}

View File

@ -42,7 +42,11 @@
"LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}" "LVBranchID": "${reflexMvtStockInterface.lv_code?json_string}"
}, },
<#if uniqueness?? && uniqueness!="" >
"ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}", "ActorID": "${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
<#else>
"ActorID": "D${reflexMvtStockInterface.physical_depot_code?trim?json_string}",
</#if>
"Movement": { "Movement": {
"DateTime": { "DateTime": {

View File

@ -4,7 +4,11 @@
"ProjectID": "${projectRP}" "ProjectID": "${projectRP}"
}, },
"ID": { "ID": {
<#if uniqueness?? && uniqueness!="" >
"RefID": "${actor.code?trim?json_string}" "RefID": "${actor.code?trim?json_string}"
<#else>
"RefID": "S${actor.code?trim?json_string}"
</#if>
}, },
"Payload": { "Payload": {

View File

@ -18,7 +18,11 @@
}, },
"Payload":{ "Payload":{
"Carrier": { "Carrier": {
<#if uniqueness?? && uniqueness!="" >
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}" "ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
<#else>
"ActorID":"CA${preparationOrder.load_data.carrier_code?trim?json_string}"
</#if>
} }
<#-- Add transport grade code <#-- Add transport grade code
<#if preparationOrder.transport_grade_code!=""> <#if preparationOrder.transport_grade_code!="">