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" } }