You've already forked reflex-wms-connector
structured adress on actors
This commit is contained in:
@@ -20,14 +20,26 @@
|
||||
|
||||
"Address":
|
||||
{
|
||||
"Name": "${actor.supplier_structured_address.name_or_company}",
|
||||
"StreetAddressOne" : "${actor.supplier_structured_address.street_and_PO}",
|
||||
"StreetAddressTwo" : "${actor.supplier_structured_address.additionnal_data}",
|
||||
"PostalCode" : "${actor.supplier_structured_address.postal_code}",
|
||||
"City" : "${actor.supplier_structured_address.post_code_area_name}",
|
||||
"CountryCode" : "${actor.supplier_structured_address.country_code}",
|
||||
"ProvinceCode": "${actor.supplier_structured_address.territorial_div_code}",
|
||||
"State": "${actor.supplier_structured_address.country_designation}"
|
||||
<#-- if Reflex WMS address is structured -->
|
||||
<#if actor.supplier_structured_address?? >
|
||||
|
||||
"Name": "${actor.supplier_structured_address.name_or_company}",
|
||||
"StreetAddressOne" : "${actor.supplier_structured_address.street_and_PO}",
|
||||
"StreetAddressTwo" : "${actor.supplier_structured_address.additionnal_data}",
|
||||
"PostalCode" : "${actor.supplier_structured_address.postal_code}",
|
||||
"City" : "${actor.supplier_structured_address.post_code_area_name}",
|
||||
"CountryCode" : "${actor.supplier_structured_address.country_code}",
|
||||
"ProvinceCode": "${actor.supplier_structured_address.territorial_div_code}",
|
||||
"State": "${actor.supplier_structured_address.country_designation}"
|
||||
|
||||
<#-- if Reflex WMS address is not structured -->
|
||||
<#else>
|
||||
"Name": "${actor.optional_attributes.company_name}",
|
||||
"StreetAddressOne" : "${actor.optional_attributes.address_1}",
|
||||
"StreetAddressTwo" : "${actor.optional_attributes.address_2}",
|
||||
"StreetAddressThree" : "${actor.optional_attributes.address_3}"
|
||||
</#if>
|
||||
|
||||
},
|
||||
"Phones": ["${actor.optional_attributes.telephone}",
|
||||
"${actor.optional_attributes.other_number}"
|
||||
|
||||
Reference in New Issue
Block a user