diff --git a/RPtoRFX_CarrierAppointmentCreated.ftl b/RPtoRFX_CarrierAppointmentCreated.ftl index c0c4f2f..c7da2d5 100644 --- a/RPtoRFX_CarrierAppointmentCreated.ftl +++ b/RPtoRFX_CarrierAppointmentCreated.ftl @@ -34,16 +34,15 @@ <#if appointment.Commissions??> "physical_receipt_list": [ <#list appointment.Commissions as commission> + <#list eventRP.executionflowCustomFields.entrySet() as custom> { - <#list eventRP.executionflowCustomFields.entrySet() 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>, ], diff --git a/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociation.ftl b/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociation.ftl index a215324..d5a458c 100644 --- a/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociation.ftl +++ b/RPtoRFX_CarrierAppointmentPhysicalReceiptAssociation.ftl @@ -11,15 +11,15 @@ <#if appointment.Commissions??> "physical_receipt_list": [ <#list appointment.Commissions as commission> + <#list eventRP.executionflowCustomFields.entrySet() as custom> { - <#list eventRP.executionflowCustomFields.entrySet() 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>, ]