You've already forked reflex-wms-connector
Prise en compte de l'API LVRemoved
This commit is contained in:
73
RFXtoRP_HsaItmLv_LogisticVariantUpdated.ftl
Normal file
73
RFXtoRP_HsaItmLv_LogisticVariantUpdated.ftl
Normal file
@@ -0,0 +1,73 @@
|
||||
<#include "HfRpConfig.ftl">
|
||||
[
|
||||
{
|
||||
"Header": {
|
||||
"ProjectID": "${projectRP}"
|
||||
},
|
||||
"ID": {
|
||||
"RefID": "${lv.item_code}"
|
||||
},
|
||||
"Payload": {
|
||||
"LogisticVariants": [
|
||||
{
|
||||
"LVID": "${lv.logistical_variant_code}",
|
||||
"Name" : "${lv.lv_type_code}",
|
||||
<#if lv.id_list??>
|
||||
"Codes": [
|
||||
<#list lv.id_list as id>
|
||||
{
|
||||
"Key": "${id.logistical_variant_ID_type_code}",
|
||||
"Value": "${id.logistical_variant_ID_code}"
|
||||
}<#sep>,</#sep>
|
||||
</#list>
|
||||
],
|
||||
</#if>
|
||||
|
||||
<#-- LV Metadata inclusion -->
|
||||
<#include "RFXtoRP_HsaItmLv_LogisticVariantUpdated_Metadata.ftl">
|
||||
|
||||
"IsBaseLogisticVariant": ${lv.base_lv},
|
||||
|
||||
<#if lv.base_lv != "true">
|
||||
"RefLV": "${lv.subpackaging_lv_code}",
|
||||
</#if>
|
||||
|
||||
"QuantityInRefLV": ${lv.quantity_in_subpackaging_lv},
|
||||
|
||||
"NetWeight": {
|
||||
"Value": ${lv.net_weight},
|
||||
"Unit": "${weight_unit_rfx}"
|
||||
},
|
||||
"GrossWeight": {
|
||||
"Value": ${lv.gross_weight},
|
||||
"Unit": "${weight_unit_rfx}"
|
||||
},
|
||||
"Volume": {
|
||||
"Value": ${lv.volume},
|
||||
"Unit": "${volume_unit_rfx}"
|
||||
},
|
||||
"Height": {
|
||||
"Value": ${lv.height},
|
||||
"Unit": "${length_unit_rfx}"
|
||||
},
|
||||
"Width": {
|
||||
"Value": ${lv.width},
|
||||
"Unit": "${length_unit_rfx}"
|
||||
},
|
||||
"Length": {
|
||||
"Value": ${lv.depth},
|
||||
"Unit": "${length_unit_rfx}"
|
||||
},
|
||||
|
||||
<#if lv.packaging_lv == "true">
|
||||
"BranchIDs": ["${lv.logistical_variant_code}"]
|
||||
<#else>
|
||||
"BranchIDs": []
|
||||
</#if>
|
||||
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user