Modifs 0501241702
This commit is contained in:
parent
7acf529870
commit
aaf8fc5bb6
@ -67,7 +67,7 @@
|
||||
{
|
||||
"FirstName" : "${preparation_order.address.first_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!""}" ]
|
||||
}
|
||||
</#if>
|
||||
|
||||
@ -23,12 +23,9 @@
|
||||
<#else>
|
||||
"receipt_datetime": "${aDateTime?iso_utc}",
|
||||
</#if>
|
||||
|
||||
<#--
|
||||
"carrier_appointment_made": "false",
|
||||
"receipt_in_cross_docking": "false",
|
||||
"dock_occupation_duration": 10,
|
||||
-->
|
||||
"dock_occupation_duration": 0,
|
||||
|
||||
<#if executionflow.Lines??>
|
||||
"line_list": [
|
||||
@ -42,7 +39,6 @@
|
||||
<#assign SegmentationKeys_Map = JsonUtil.sequenceToMap(line.RequestedContent.Goods.SegmentationKeys, "Key", "Value") />
|
||||
</#if>
|
||||
<#include "RPtoRFX_Receipt_DefaultLineData.ftl">
|
||||
|
||||
{
|
||||
"receipt_reference_line_no": ${line.LineID?number},
|
||||
"item_code": "${line.RequestedContent.Goods.ItemID!""}",
|
||||
@ -51,17 +47,14 @@
|
||||
"owner_code": "${owner_code}",
|
||||
"grade_code": "${grade_code}",
|
||||
"batch_1": "${batch_1!""}",
|
||||
|
||||
<#--
|
||||
"optional_attributes": {
|
||||
"held_for_check": "false",
|
||||
"held _for_repacking": "false",
|
||||
"hold_for_specific_code": "false",
|
||||
"hold_code": "false"
|
||||
},
|
||||
-->
|
||||
"quality_control_attributes": {
|
||||
<#--"qcf_to_create_for_receipt_line": "false",-->
|
||||
"qcf_to_create_for_receipt_line": "false",
|
||||
"exclude_item_from_inspection": "false"
|
||||
}
|
||||
|
||||
|
||||
@ -6,4 +6,22 @@
|
||||
<#return (datetimeUTC)>
|
||||
</#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