You've already forked reflex-wms-connector
management of double quote in actors addresses
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
},
|
||||
|
||||
"Payload": {
|
||||
"Name": "${actor.designation}",
|
||||
"Name": "${actor.designation?json_string}",
|
||||
"ManagedStock": false,
|
||||
"IsCarrier": false,
|
||||
<#-- ***Partner ID could be added here *** -->
|
||||
@@ -23,26 +23,26 @@
|
||||
<#-- 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}"
|
||||
"Name": "${actor.supplier_structured_address.name_or_company?json_string}",
|
||||
"StreetAddressOne" : "${actor.supplier_structured_address.street_and_PO?json_string}",
|
||||
"StreetAddressTwo" : "${actor.supplier_structured_address.additionnal_data?json_string}",
|
||||
"PostalCode" : "${actor.supplier_structured_address.postal_code?json_string}",
|
||||
"City" : "${actor.supplier_structured_address.post_code_area_name?json_string}",
|
||||
"CountryCode" : "${actor.supplier_structured_address.country_code?json_string}",
|
||||
"ProvinceCode": "${actor.supplier_structured_address.territorial_div_code?json_string}",
|
||||
"State": "${actor.supplier_structured_address.country_designation?json_string}"
|
||||
|
||||
<#-- 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}"
|
||||
"Name": "${actor.optional_attributes.company_name?json_string}",
|
||||
"StreetAddressOne" : "${actor.optional_attributes.address_1?json_string}",
|
||||
"StreetAddressTwo" : "${actor.optional_attributes.address_2?json_string}",
|
||||
"StreetAddressThree" : "${actor.optional_attributes.address_3?json_string}"
|
||||
</#if>
|
||||
|
||||
},
|
||||
"Phones": ["${actor.optional_attributes.telephone}",
|
||||
"${actor.optional_attributes.other_number}"
|
||||
"Phones": ["${actor.optional_attributes.telephone?json_string}",
|
||||
"${actor.optional_attributes.other_number?json_string}"
|
||||
],
|
||||
"Typology": "TYPOLOGY_UNKNOWN"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user