modif receipt expected
This commit is contained in:
parent
9b8a5ad5c6
commit
16f4e35c02
@ -1,25 +1,58 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
<#include "HfRpConfig.ftl">
|
||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
<#assign receipt_status_datetime = RfxDateTimetoUTCWithTimezone(receipt.creation_datetime,time_zone_rfx) />
|
<#assign receipt_status_datetime = RfxDateTimetoUTCWithTimezone(receipt.confirmation_datetime,time_zone_rfx) />
|
||||||
|
<#assign refIDHmap_local ={}>
|
||||||
[
|
[
|
||||||
{
|
<#if receipt.line_list??>
|
||||||
"Header": {
|
<#list receipt.line_list as receipt_line >
|
||||||
"ProjectID": "${projectRP}"
|
<#if receipt_line.origin_order_line_reference!="">
|
||||||
},
|
<#if !refIDHmap_local[receipt_line.origin_order_line_reference]?? >
|
||||||
"ID": {
|
<#if refIDHmap_local?size != 0 >
|
||||||
<#if receipt.receipt_reference?? && receipt.receipt_reference!="">
|
,
|
||||||
"RefID": "${receipt.receipt_reference?trim?json_string}",
|
</#if>
|
||||||
<#else>
|
<#assign refIDHmap_local +={receipt_line.origin_order_line_reference,receipt_line.origin_order_line_reference}>
|
||||||
"RefID": "R${receipt.physical_depot_code?trim?json_string}${receipt.activity_code?trim?json_string}${receipt.originator_code?trim?json_string}${receipt.receipt_year?trim?json_string}${receipt.receipt_number?trim?json_string}",
|
{
|
||||||
|
"Header": {"ProjectID": "${projectRP}"},
|
||||||
|
"ID": {
|
||||||
|
"RefID": "${receipt_line.origin_order_line_reference?trim?json_string}",
|
||||||
|
"RefDate": {
|
||||||
|
"DateTime": "${receipt_status_datetime}",
|
||||||
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Payload": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
"RefDate": {
|
</#list>
|
||||||
"DateTime": "${receipt_status_datetime}",
|
<#else>
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
<#if receipt.receipt_reference?? && receipt.receipt_reference!="">
|
||||||
|
{
|
||||||
|
"Header": {"ProjectID": "${projectRP}"},
|
||||||
|
"ID": {
|
||||||
|
"RefID": "${receipt.receipt_reference?trim?json_string}",
|
||||||
|
"RefDate": {
|
||||||
|
"DateTime": "${receipt_status_datetime}",
|
||||||
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Payload": {
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
<#else>
|
||||||
"Payload": {}
|
{
|
||||||
|
"Header": {"ProjectID": "${projectRP}"},
|
||||||
}
|
"ID": {
|
||||||
]
|
"RefID": "R${receipt.physical_depot_code?trim?json_string}${receipt.activity_code?trim?json_string}${receipt.originator_code?trim?json_string}${receipt.receipt_year?trim?json_string}${receipt.receipt_number?trim?json_string}",
|
||||||
|
"RefDate": {
|
||||||
|
"DateTime": "${receipt_status_datetime}",
|
||||||
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Payload": {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
|
</#if>
|
||||||
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user