Modifs 0501241702
This commit is contained in:
parent
7acf529870
commit
aaf8fc5bb6
@ -63,11 +63,11 @@
|
|||||||
"StreetAddressThree" : "${preparation_order.address.additional_address_data_2?json_string!""}"
|
"StreetAddressThree" : "${preparation_order.address.additional_address_data_2?json_string!""}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Contact" :
|
"Contact" :
|
||||||
{
|
{
|
||||||
"FirstName" : "${preparation_order.address.first_name?json_string!""}",
|
"FirstName" : "${preparation_order.address.first_name?json_string!""}",
|
||||||
"LastName" : "${preparation_order.address.last_name?json_string!""}",
|
"LastName" : "${preparation_order.address.last_name?json_string!""}",
|
||||||
"Emails" : ["${preparation_order.address.mail_address?json_string!""}"],
|
"Emails" : ${splitEmailsIntoArray(preparation_order.address.mail_address?json_string!"")},
|
||||||
"Phones" : ["${preparation_order.address.mobile_phone_number!""}","${preparation_order.address.land_line_phone_number!""}", "${preparation_order.address.fax_number!""}" ]
|
"Phones" : ["${preparation_order.address.mobile_phone_number!""}","${preparation_order.address.land_line_phone_number!""}", "${preparation_order.address.fax_number!""}" ]
|
||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
|
|||||||
@ -19,30 +19,26 @@
|
|||||||
"carrier_code" : "${executionflow.Carrier.ActorID!""}",
|
"carrier_code" : "${executionflow.Carrier.ActorID!""}",
|
||||||
|
|
||||||
<#if executionflow.RequestedMilestones?? && executionflow.RequestedMilestones.RequestedDeliveryDateTime??>
|
<#if executionflow.RequestedMilestones?? && executionflow.RequestedMilestones.RequestedDeliveryDateTime??>
|
||||||
"receipt_datetime": "${executionflow.RequestedMilestones.RequestedDeliveryDateTime.DateTime}",
|
"receipt_datetime": "${executionflow.RequestedMilestones.RequestedDeliveryDateTime.DateTime}",
|
||||||
<#else>
|
<#else>
|
||||||
"receipt_datetime": "${aDateTime?iso_utc}",
|
"receipt_datetime": "${aDateTime?iso_utc}",
|
||||||
</#if>
|
</#if>
|
||||||
|
"carrier_appointment_made": "false",
|
||||||
<#--
|
"receipt_in_cross_docking": "false",
|
||||||
"carrier_appointment_made": "false",
|
"dock_occupation_duration": 0,
|
||||||
"receipt_in_cross_docking": "false",
|
|
||||||
"dock_occupation_duration": 10,
|
|
||||||
-->
|
|
||||||
|
|
||||||
<#if executionflow.Lines??>
|
<#if executionflow.Lines??>
|
||||||
"line_list": [
|
"line_list": [
|
||||||
<#list executionflow.Lines as line>
|
<#list executionflow.Lines as line>
|
||||||
|
|
||||||
<#-- ******* line MetaData and Segmentationkeys to maps ******** -->
|
<#-- ******* line MetaData and Segmentationkeys to maps ******** -->
|
||||||
<#if line.MetaData??>
|
<#if line.MetaData??>
|
||||||
<#assign Line_MetaData_Map = JsonUtil.sequenceToMap(line.MetaData, "Key", "Value") />
|
<#assign Line_MetaData_Map = JsonUtil.sequenceToMap(line.MetaData, "Key", "Value") />
|
||||||
</#if>
|
</#if>
|
||||||
<#if line.RequestedContent.Goods.SegmentationKeys??>
|
<#if line.RequestedContent.Goods.SegmentationKeys??>
|
||||||
<#assign SegmentationKeys_Map = JsonUtil.sequenceToMap(line.RequestedContent.Goods.SegmentationKeys, "Key", "Value") />
|
<#assign SegmentationKeys_Map = JsonUtil.sequenceToMap(line.RequestedContent.Goods.SegmentationKeys, "Key", "Value") />
|
||||||
</#if>
|
</#if>
|
||||||
<#include "RPtoRFX_Receipt_DefaultLineData.ftl">
|
<#include "RPtoRFX_Receipt_DefaultLineData.ftl">
|
||||||
|
|
||||||
{
|
{
|
||||||
"receipt_reference_line_no": ${line.LineID?number},
|
"receipt_reference_line_no": ${line.LineID?number},
|
||||||
"item_code": "${line.RequestedContent.Goods.ItemID!""}",
|
"item_code": "${line.RequestedContent.Goods.ItemID!""}",
|
||||||
@ -50,18 +46,15 @@
|
|||||||
"level_1_quantity": ${line.RequestedMetrics.QuantityInBaseLV.Value!0},
|
"level_1_quantity": ${line.RequestedMetrics.QuantityInBaseLV.Value!0},
|
||||||
"owner_code": "${owner_code}",
|
"owner_code": "${owner_code}",
|
||||||
"grade_code": "${grade_code}",
|
"grade_code": "${grade_code}",
|
||||||
"batch_1": "${batch_1!""}",
|
"batch_1": "${batch_1!""}",
|
||||||
|
|
||||||
<#--
|
|
||||||
"optional_attributes": {
|
"optional_attributes": {
|
||||||
"held_for_check": "false",
|
"held_for_check": "false",
|
||||||
"held _for_repacking": "false",
|
"held _for_repacking": "false",
|
||||||
"hold_for_specific_code": "false",
|
"hold_for_specific_code": "false",
|
||||||
"hold_code": "false"
|
"hold_code": "false"
|
||||||
},
|
},
|
||||||
-->
|
|
||||||
"quality_control_attributes": {
|
"quality_control_attributes": {
|
||||||
<#--"qcf_to_create_for_receipt_line": "false",-->
|
"qcf_to_create_for_receipt_line": "false",
|
||||||
"exclude_item_from_inspection": "false"
|
"exclude_item_from_inspection": "false"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,4 +6,22 @@
|
|||||||
<#return (datetimeUTC)>
|
<#return (datetimeUTC)>
|
||||||
</#function>
|
</#function>
|
||||||
|
|
||||||
|
<#-- --------------------------------------------------------------------------------------- -->
|
||||||
|
<#-- Split email reflex into json array string -->
|
||||||
|
<#-- Example : splitemail "john.doe@hardis-group.com,; name@hardis-group.com" -->
|
||||||
|
<#-- return "["john.doe@hardis-group.com","name@hardis-group.com"]" -->
|
||||||
|
<#-- ${splitEmailsIntoArray(emailReflex)} -->
|
||||||
|
<#-- --------------------------------------------------------------------------------------- -->
|
||||||
|
<#function splitEmailsIntoArray emails >
|
||||||
|
<#local str = "[">
|
||||||
|
<#list emails?split(';|,| ',"r")?filter(l -> l != "") as email>
|
||||||
|
<#if str != "[">
|
||||||
|
<#local str += ",">
|
||||||
|
</#if>
|
||||||
|
<#local str += "\"">
|
||||||
|
<#local str += email>
|
||||||
|
<#local str += "\"">
|
||||||
|
</#list>
|
||||||
|
<#local str += "]">
|
||||||
|
<#return (str)>
|
||||||
|
</#function>
|
||||||
Loading…
x
Reference in New Issue
Block a user