From 3f1711728a5f40958dca9f996c58fdb77c1634fc Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Tue, 18 Nov 2025 15:12:41 +0100 Subject: [PATCH] RDV --- RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl index 29d17cf..fc151c7 100644 --- a/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl +++ b/RFXtoRP_HsrCarrierApt_SiteForceBookAppointment.ftl @@ -51,7 +51,11 @@ <#list carrier_apt.physical_receipt_list as physical_receipt> { "ActorID": "${RFXtoRPprefixDepot(carrier_apt.physical_depot?json_string)}", - "OrderID": "${physical_receipt.physical_receipt_reference?json_string}", + <#if physical_receipt.physical_receipt_reference?? && physical_receipt.physical_receipt_reference!=""> + "OrderID": "${physical_receipt.physical_receipt_reference?json_string}", + <#else> + "OrderID": "R${carrier_apt.physical_depot?json_string}${physical_receipt.receipt_activity?json_string}${physical_receipt.originator_code?json_string}${physical_receipt.receipt_year}${physical_receipt.receipt_number}", + "ProjectID": "${projectRP}", "Quantities": [ {