Merge branch 'SCPN1-5711' into 'release/1.2'
Modifs RPtoRFX 1701240947 See merge request r-d-technique/tiers/reflex-wms-connector!10
This commit is contained in:
commit
098b2d4e1d
@ -33,29 +33,28 @@
|
|||||||
"ItemID": "${preparation_line.item_code}",
|
"ItemID": "${preparation_line.item_code}",
|
||||||
"LVBranchID": "${preparation_line.item_lv_code}",
|
"LVBranchID": "${preparation_line.item_lv_code}",
|
||||||
<#if (despatched_ipg.ipg_manufacture_date?length != 0) && (despatched_ipg.ipg_manufacture_date?starts_with("00") == false)>
|
<#if (despatched_ipg.ipg_manufacture_date?length != 0) && (despatched_ipg.ipg_manufacture_date?starts_with("00") == false)>
|
||||||
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_manufacture_date) /> -->
|
|
||||||
<#assign priority_date = despatched_ipg.ipg_manufacture_date?datetime(rfx_date_format_default)?iso_utc />
|
<#assign priority_date = despatched_ipg.ipg_manufacture_date?datetime(rfx_date_format_default)?iso_utc />
|
||||||
"PriorityDate": "${priority_date}",
|
"PriorityDate": "${priority_date}",
|
||||||
<#else>
|
<#else>
|
||||||
<#if (despatched_ipg.ipg_receipt_date?length != 0) && (despatched_ipg.ipg_receipt_date?starts_with("00")== false)>
|
<#if (despatched_ipg.ipg_receipt_date?length != 0) && (despatched_ipg.ipg_receipt_date?starts_with("00")== false)>
|
||||||
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_receipt_date) /> -->
|
|
||||||
<#assign priority_date = despatched_ipg.ipg_receipt_date?datetime(rfx_date_format_default)?iso_utc />
|
<#assign priority_date = despatched_ipg.ipg_receipt_date?datetime(rfx_date_format_default)?iso_utc />
|
||||||
"PriorityDate": "${priority_date}",
|
"PriorityDate": "${priority_date}",
|
||||||
<#else>
|
<#else>
|
||||||
<#if (despatched_ipg.ipg_best_before_date?length != 0) && (despatched_ipg.ipg_best_before_date?starts_with("00")== false)>
|
<#if (despatched_ipg.ipg_best_before_date?length != 0) && (despatched_ipg.ipg_best_before_date?starts_with("00")== false)>
|
||||||
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_best_before_date) /> -->
|
|
||||||
<#assign priority_date = despatched_ipg.ipg_best_before_date?datetime(rfx_date_format_default)?iso_utc />
|
<#assign priority_date = despatched_ipg.ipg_best_before_date?datetime(rfx_date_format_default)?iso_utc />
|
||||||
"PriorityDate": "${priority_date}",
|
"PriorityDate": "${priority_date}",
|
||||||
<#else>
|
<#else>
|
||||||
<#if (despatched_ipg.ipg_sell_by_date?length != 0) && (despatched_ipg.ipg_sell_by_date?starts_with("00")== false)>
|
<#if (despatched_ipg.ipg_sell_by_date?length != 0) && (despatched_ipg.ipg_sell_by_date?starts_with("00")== false)>
|
||||||
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_sell_by_date) /> -->
|
|
||||||
<#assign priority_date = despatched_ipg.ipg_sell_by_date?datetime(rfx_date_format_default)?iso_utc />
|
<#assign priority_date = despatched_ipg.ipg_sell_by_date?datetime(rfx_date_format_default)?iso_utc />
|
||||||
"PriorityDate": "${priority_date}",
|
"PriorityDate": "${priority_date}",
|
||||||
<#else>
|
<#else>
|
||||||
<#if (despatched_ipg.ipg_use_by_date?length != 0) && (despatched_ipg.ipg_use_by_date?starts_with("00")== false)>
|
<#if (despatched_ipg.ipg_use_by_date?length != 0) && (despatched_ipg.ipg_use_by_date?starts_with("00")== false)>
|
||||||
<#-- <#assign priority_date = JsonUtil.createUTCDateTime(despatched_ipg.ipg_use_by_date) /> -->
|
|
||||||
<#assign priority_date = despatched_ipg.ipg_use_by_date?datetime(rfx_date_format_default)?iso_utc />
|
<#assign priority_date = despatched_ipg.ipg_use_by_date?datetime(rfx_date_format_default)?iso_utc />
|
||||||
"PriorityDate": "${priority_date}",
|
"PriorityDate": "${priority_date}",
|
||||||
|
<#else>
|
||||||
|
<#if (preparationOrder.stock_despatch_at_preparation_datetime?length != 0) && (preparationOrder.stock_despatch_at_preparation_datetime?starts_with("00")== false)>
|
||||||
|
<#assign priority_date = preparationOrder.stock_despatch_at_preparation_datetime?datetime(rfx_date_format_default)?iso_utc />
|
||||||
|
"PriorityDate": "${priority_date}",
|
||||||
<#else>
|
<#else>
|
||||||
"PriorityDate": "error_date",
|
"PriorityDate": "error_date",
|
||||||
</#if>
|
</#if>
|
||||||
|
|||||||
@ -2,10 +2,18 @@
|
|||||||
|
|
||||||
<#-- How to use MD Header map
|
<#-- How to use MD Header map
|
||||||
Example :
|
Example :
|
||||||
<#assign pick_sequence_code = Header_MetaData_Map["OrderType"]!""/>
|
<#assign pick_sequence_code = Header_MetaData_Map["OrderType"].String!""/>
|
||||||
|
|
||||||
|
If your MD is :
|
||||||
|
Boolean : .Bool
|
||||||
|
Float : .Float
|
||||||
|
Timestamp : .Timestamp.DateTime or .Timestamp.AuthorTimeZone
|
||||||
|
Int : .Int
|
||||||
|
String : .String
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<#assign activity_code = ""/>
|
<#assign activity_code = ""/>
|
||||||
<#assign originator_code = ""/>
|
<#assign originator_code = ""/>
|
||||||
<#assign preparation_type_code = ""/>
|
<#assign preparation_type_code = ""/>
|
||||||
|
|||||||
@ -3,7 +3,14 @@
|
|||||||
|
|
||||||
<#-- How to use MD or SK map
|
<#-- How to use MD or SK map
|
||||||
Example :
|
Example :
|
||||||
<#assign owner_code_to_prepare = SegmentationKeys_Map["Owner"]!""/>
|
<#assign owner_code_to_prepare = SegmentationKeys_Map["Owner"].String!""/>
|
||||||
|
|
||||||
|
If your SK is :
|
||||||
|
Boolean : .Bool
|
||||||
|
Float : .Float
|
||||||
|
Timestamp : .Timestamp.DateTime or .Timestamp.AuthorTimeZone
|
||||||
|
Int : .Int
|
||||||
|
String : .String
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<#assign owner_code_to_prepare = SegmentationKeys_Map["myOwner"]!""/>
|
<#assign owner_code_to_prepare = SegmentationKeys_Map["myOwner"]!""/>
|
||||||
|
|||||||
@ -2,7 +2,14 @@
|
|||||||
|
|
||||||
<#-- How to use MD Header map
|
<#-- How to use MD Header map
|
||||||
Example :
|
Example :
|
||||||
<#assign receipt_type = Header_MetaData_Map["OrderType"]!""/>
|
<#assign receipt_type = Header_MetaData_Map["OrderType"].String!""/>
|
||||||
|
|
||||||
|
If your MD is :
|
||||||
|
Boolean : .Bool
|
||||||
|
Float : .Float
|
||||||
|
Timestamp : .Timestamp.DateTime or .Timestamp.AuthorTimeZone
|
||||||
|
Int : .Int
|
||||||
|
String : .String
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<#assign activity_code = ""/>
|
<#assign activity_code = ""/>
|
||||||
|
|||||||
@ -3,7 +3,14 @@
|
|||||||
|
|
||||||
<#-- How to use MD or SK map
|
<#-- How to use MD or SK map
|
||||||
Example :
|
Example :
|
||||||
<#assign owner_code = SegmentationKeys_Map["Owner"]!""/>
|
<#assign owner_code = SegmentationKeys_Map["Owner"].String!""/>
|
||||||
|
|
||||||
|
If your SK is :
|
||||||
|
Boolean : .Bool
|
||||||
|
Float : .Float
|
||||||
|
Timestamp : .Timestamp.DateTime or .Timestamp.AuthorTimeZone
|
||||||
|
Int : .Int
|
||||||
|
String : .String
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -15,12 +15,14 @@
|
|||||||
<#function splitEmailsIntoArray emails >
|
<#function splitEmailsIntoArray emails >
|
||||||
<#local str = "[">
|
<#local str = "[">
|
||||||
<#list emails?split(';|,| ',"r")?filter(l -> l != "") as email>
|
<#list emails?split(';|,| ',"r")?filter(l -> l != "") as email>
|
||||||
|
<#if email?matches("^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$")>
|
||||||
<#if str != "[">
|
<#if str != "[">
|
||||||
<#local str += ",">
|
<#local str += ",">
|
||||||
</#if>
|
</#if>
|
||||||
<#local str += "\"">
|
<#local str += "\"">
|
||||||
<#local str += email>
|
<#local str += email>
|
||||||
<#local str += "\"">
|
<#local str += "\"">
|
||||||
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
<#local str += "]">
|
<#local str += "]">
|
||||||
<#return (str)>
|
<#return (str)>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user