From 1cc34e665799e0c8c34434fcd21e9c4594b037e4 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Thu, 10 Oct 2024 14:08:43 +0200 Subject: [PATCH] modifs depot --- RFXtoRP_HsrDepot_ActorCreated.ftl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/RFXtoRP_HsrDepot_ActorCreated.ftl b/RFXtoRP_HsrDepot_ActorCreated.ftl index 3bac4c9..e64bb6b 100644 --- a/RFXtoRP_HsrDepot_ActorCreated.ftl +++ b/RFXtoRP_HsrDepot_ActorCreated.ftl @@ -41,17 +41,20 @@ <#-- if Reflex WMS address is not structured --> <#else> + <#if depot.physical_depot_address??> "Name": "${depot.physical_depot_address.company_name?json_string}", "StreetAddressOne" : "${depot.physical_depot_address.address_1?json_string}", "StreetAddressTwo" : "${depot.physical_depot_address.address_2?json_string}", "StreetAddressThree" : "${depot.physical_depot_address.address_3?json_string}", "CountryCode" : "" + - }, - "Phones": ["${depot.physical_depot_address.telephone?json_string}", - "${depot.physical_depot_address.other_number?json_string}" - ], + <#if depot.physical_depot_address??> + "Phones": ["${depot.physical_depot_address.telephone?json_string}", + "${depot.physical_depot_address.other_number?json_string}" + ], + "Typology": "TYPOLOGY_UNKNOWN" } }