You've already forked reflex-wms-connector
SCPN1-10893
This commit is contained in:
@@ -38,24 +38,45 @@
|
|||||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING >
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_UNLOADING >
|
||||||
<#if appointment.Unloading?? && appointment.Unloading.Projects?? && appointment.Unloading.Projects[0]?? &&
|
<#if appointment.Unloading?? && appointment.Unloading.Projects?? && appointment.Unloading.Projects[0]?? &&
|
||||||
appointment.Unloading.Projects[0].Commissions?? &&
|
appointment.Unloading.Projects[0].Commissions?? &&
|
||||||
appointment.Unloading.Projects[0].Commissions[0]?? && appointment.Unloading.Projects[0].Commissions[0].ExecutionflowID?? && appointment.Unloading.Projects[0].Commissions[0].ExecutionflowID!="" >
|
appointment.Unloading.Projects[0].Commissions[0]?? && appointment.Unloading.Projects[0].Commissions[0].OrderID?? && appointment.Unloading.Projects[0].Commissions[0].OrderID!=""
|
||||||
"physical_receipt_list": [
|
&& appointment.Unloading.Projects[0].Commissions[0].ExecutionflowID?? && appointment.Unloading.Projects[0].Commissions[0].ExecutionflowID=="" >
|
||||||
<#list appointment.Unloading.Projects[0].Commissions?filter(l ->l.ExecutionflowID?? && l.ExecutionflowID !="") as commission>
|
"anticipated_receipt_list": [
|
||||||
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.key == commission.ExecutionflowID && l.value?? && l.value?has_content) as custom>
|
<#list appointment.Unloading.Projects[0].Commissions?filter(l ->l.OrderID?? && l.OrderID !="" && l.ExecutionflowID?? && l.ExecutionflowID=="") as commission>
|
||||||
{
|
<#list eventRP.orderCustomFields.entrySet()?filter(l ->l.key == commission.OrderID && l.value?? && l.value?has_content) as custom>
|
||||||
"receipt_activity": "${custom.value.activity_code?json_string}",
|
{
|
||||||
"originator_code": "${custom.value.originator_code?json_string}",
|
"receipt_activity": "${custom.value.activity_code?json_string}",
|
||||||
"physical_receipt_reference": "${custom.value.reference?json_string}",
|
"originator_code": "${custom.value.originator_code?json_string}",
|
||||||
"receipt_year": "${custom.value.order_year?json_string}",
|
"anticipated_receipt_reference": "${custom.value.anticipated_receipt_reference?json_string}",
|
||||||
"receipt_number": "${custom.value.order_number?json_string}"
|
"anticipated_receipt_year": "${custom.value.anticipated_receipt_year?json_string}",
|
||||||
}
|
"anticipated_receipt_number": "${custom.value.anticipated_receipt_number?json_string}"
|
||||||
<#sep>,</#sep>
|
}
|
||||||
</#list>
|
<#sep>,</#sep>
|
||||||
<#sep>,</#sep>
|
</#list>
|
||||||
</#list>
|
<#sep>,</#sep>
|
||||||
],
|
</#list>
|
||||||
|
],
|
||||||
<#else>
|
<#else>
|
||||||
"appointment_designation":"${(appointment.Reason!"")!?json_string}",
|
<#if appointment.Unloading?? && appointment.Unloading.Projects?? && appointment.Unloading.Projects[0]?? &&
|
||||||
|
appointment.Unloading.Projects[0].Commissions?? &&
|
||||||
|
appointment.Unloading.Projects[0].Commissions[0]?? && appointment.Unloading.Projects[0].Commissions[0].ExecutionflowID?? && appointment.Unloading.Projects[0].Commissions[0].ExecutionflowID!="" >
|
||||||
|
"physical_receipt_list": [
|
||||||
|
<#list appointment.Unloading.Projects[0].Commissions?filter(l ->l.ExecutionflowID?? && l.ExecutionflowID !="") as commission>
|
||||||
|
<#list eventRP.executionflowCustomFields.entrySet()?filter(l ->l.key == commission.ExecutionflowID && l.value?? && l.value?has_content) as custom>
|
||||||
|
{
|
||||||
|
"receipt_activity": "${custom.value.activity_code?json_string}",
|
||||||
|
"originator_code": "${custom.value.originator_code?json_string}",
|
||||||
|
"physical_receipt_reference": "${custom.value.reference?json_string}",
|
||||||
|
"receipt_year": "${custom.value.order_year?json_string}",
|
||||||
|
"receipt_number": "${custom.value.order_number?json_string}"
|
||||||
|
}
|
||||||
|
<#sep>,</#sep>
|
||||||
|
</#list>
|
||||||
|
<#sep>,</#sep>
|
||||||
|
</#list>
|
||||||
|
],
|
||||||
|
<#else>
|
||||||
|
"appointment_designation":"${(appointment.Reason!"")!?json_string}",
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_LOADING>
|
<#if appointment.AppointmentType == AppointmentType.APPOINTMENT_TYPE_LOADING>
|
||||||
|
|||||||
Reference in New Issue
Block a user