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 *** -->
|
||||
@@ -24,28 +24,28 @@
|
||||
<#-- if Reflex WMS is structured -->
|
||||
<#if actor.consignee_structured_address??>
|
||||
|
||||
"Name": "${actor.consignee_structured_address.name_or_company}",
|
||||
"StreetAddressOne" : "${actor.consignee_structured_address.street_and_PO}",
|
||||
"StreetAddressTwo" : "${actor.consignee_structured_address.additionnal_data}",
|
||||
"PostalCode" : "${actor.consignee_structured_address.postal_code}",
|
||||
"City" : "${actor.consignee_structured_address.post_code_area_name}",
|
||||
"CountryCode" : "${actor.consignee_structured_address.country_code}",
|
||||
"ProvinceCode": "${actor.consignee_structured_address.territorial_div_code}",
|
||||
"State": "${actor.consignee_structured_address.country_designation}"
|
||||
"Name": "${actor.consignee_structured_address.name_or_company?json_string}",
|
||||
"StreetAddressOne" : "${actor.consignee_structured_address.street_and_PO?json_string}",
|
||||
"StreetAddressTwo" : "${actor.consignee_structured_address.additionnal_data?json_string}",
|
||||
"PostalCode" : "${actor.consignee_structured_address.postal_code?json_string}",
|
||||
"City" : "${actor.consignee_structured_address.post_code_area_name?json_string}",
|
||||
"CountryCode" : "${actor.consignee_structured_address.country_code?json_string}",
|
||||
"ProvinceCode": "${actor.consignee_structured_address.territorial_div_code?json_string}",
|
||||
"State": "${actor.consignee_structured_address.country_designation?json_string}"
|
||||
|
||||
<#-- if Reflex WMS is not structured -->
|
||||
<#else>
|
||||
|
||||
"Name": "${actor.address.company_name}",
|
||||
"StreetAddressOne" : "${actor.address.address_1}",
|
||||
"StreetAddressTwo" : "${actor.address.address_2}",
|
||||
"StreetAddressThree" : "${actor.address.address_3}"
|
||||
"Name": "${actor.address.company_name?json_string}",
|
||||
"StreetAddressOne" : "${actor.address.address_1?json_string}",
|
||||
"StreetAddressTwo" : "${actor.address.address_2?json_string}",
|
||||
"StreetAddressThree" : "${actor.address.address_3?json_string}"
|
||||
|
||||
</#if>
|
||||
},
|
||||
|
||||
"Phones": ["${actor.address.telephone}",
|
||||
"${actor.address.other_number}"
|
||||
"Phones": ["${actor.address.telephone?json_string}",
|
||||
"${actor.address.other_number?json_string}"
|
||||
],
|
||||
"Typology": "TYPOLOGY_UNKNOWN"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user