[icds_twig]
{#}Apex Event Registration Detail
Shows registration record from D365
Prompts for Payment or Corporate Reg code for registration
ND - February 24, 2022
page id: 8541
{#}
{#}Vertical Lift Code - Need to include jquery for unauthenticated users for some reason
{#}
{#}Registration GUID {{params.id}}{#}
{#}Code required for payment gateway{#}
{% include 'Basestyletemplate' %}
{#}Set registration entity object {#}
{% set reg = entities.bdo_registration[params.id] %}
{#}Set conference entity object {#}
{% set confid = reg.bdo_conferenceid %}
{% set conf = entities.bdo_conference[confid.Id] %}
{% set userid = user.reference.Id %}
{#}Get Ticket Type{#}
{% set ticketid = reg.bdo_eventid %}
{#}{% set ticket = entities.bdo_event[reg.bdo_eventid].Id %}{#}
{% set ticket = entities.bdo_event[ticketid.Id] %}
{#}Get Language{#}
{% set lang = constant('ICL_LANGUAGE_CODE') %}
{#}ENGLISH{#}
{% if lang == "en" %}
{% set loginmessage = "You will need to login to view your receipts." %}
{% set conferencelabel = "Conference/Event" %}
{% set tickettypelabel = "Ticket Type" %}
{% set attendeenamelabel = "Attendee" %}
{% set paystatuslabel = "Payment Status" %}
{% set registrationfeelabel = "Registration Fee" %}
{% set paymentoptionslabel = "Payment Options" %}
{% set paybycreditcardbtnlabel = "Pay by Credit Card" %}
{% set confdatelabel = "Date:" %}
{% set locationlabel = "Location:" %}
{% set regdeadlinelabel = "Registration Deadline:" %}
{% set eventdescriptionlabel = "Event Description:" %}
{% set contactandsupportlabel = "Contact and Support:" %}
{% set accomodationlabel = "Accomodations:" %}
{% set cancelandrefundlabel = "Cancellation and Refund Policy:" %}
{% set returntomemberprofilelabel = "Return to Member Profile Page" %}
{% set pagetitle = "Registration Details" %}
{% set invoicemessage = "You have selected to pay by invoice. You will receive by email. Alternatively, you can pay now via credit card." %}
{% set RequestInvoiceLabel = "Invoice my Organization" %}
{% set preferinvoice = "You specified credit card but we can send an invoice." %}
{% set updatemsg = "Thank you, Invoice is being sent." %}
{% set paymentinstructions = "Should you have any questions in regards to payment, please email us at registration-inscription@apex.gc.ca" %}
{% endif %}
{#}FRENCH{#}
{% if lang == "fr" %}
{% set loginmessage = "Vous devez ouvrir une session pour voir vos reçus." %}
{% set conferencelabel = "Conférence / Événement" %}
{% set tickettypelabel = "Type d'entrée" %}
{% set attendeenamelabel = "Participant-e" %}
{% set paystatuslabel = "État du paiement" %}
{% set registrationfeelabel = "Frais d'inscription" %}
{% set paymentoptionslabel = "Options de paiement" %}
{% set paybycreditcardbtnlabel = "Payer par carte de crédit" %}
{% set confdatelabel = "Date :" %}
{% set locationlabel = "Emplacement :" %}
{% set regdeadlinelabel = "Date limite d'inscription :" %}
{% set eventdescriptionlabel = "Description de l'événement :" %}
{% set contactandsupportlabel = "Contact et soutien :" %}
{% set accomodationlabel = "Hébergement :" %}
{% set cancelandrefundlabel = "Politique d'annulation et de remboursement :" %}
{% set returntomemberprofilelabel = "Retour à la page Profil du membre" %}
{% set pagetitle = "Détails d'inscription" %}
{% set invoicemessage = "FR You have selected to pay by invoice. You will receive by email. Alternatively, you can pay now via credit card." %}
{% set RequestInvoiceLabel = "Facturer mon organisation" %}
{% set preferinvoice = "FR You specified credit card but we can send an invoice." %}
{% set updatemsg = "La facture a été envoyée." %}
{% set paymentinstructions = "Si vous avez des questions concernant le paiement, veuillez nous envoyer un courriel à registration-inscription@apex.gc.ca" %}
{% endif %}
{#}Show details {#}
{% if lang == "fr" %}
{#}Determine if this particular registration is paid or not{#}
{% if reg.bdo_paymentstatus == 755390001 or reg.bdo_paymentstatus == 755390002 or reg.rbms_price <= 0 %}
{#}
{{reg|formatted_value("bdo_paymentstatus")}}
No payment or paid
{#}
{% else %}
{% endif %} {#}End Payment Section{#} {#} Pick Sessions Section {#} {% fetchxml collection="sessions" cache="PT30M" %}
{% endfetchxml %}
{% if sessions.results.total_record_count > 0 %}
{#}Session Chooser, pass registration id {#}
{% endif %} {#}End Pick Sessions Section {#} {% if lang == "fr" %}
{% if conf.rbms_locationdetails != null %}
{% endif %} {% if lang == "fr" %} {% if conf.rbms_conferenceshortdescriptionfrench != null %}
{% endif %} {% else %} {% if conf.rbms_conferenceshortdescription != null %}
{% endif %} {% endif %} {% if user.is_bound %} {% endif %} [/icds_twig]
{{pagetitle}}
| {{conferencelabel}} | {{conf.rbms_conferencenamefrench}} | |
|---|---|---|
| {{tickettypelabel}} | {{ticket.rbms_eventtickettypefrenchname}} | |
| {{conferencelabel}} | {{conf.bdo_name}} | |
| {{tickettypelabel}} | {{ticket.bdo_name}} | |
| {{attendeenamelabel}} | {% if user.is_bound %}{{user.record["fullname"]}} | {% else %}{{reg.rbms_firstname}} {{reg.rbms_lastname}} | {% endif %}
| {{registrationfeelabel}} | ${{reg.rbms_price}} | |
| {{paystatuslabel}} | {{reg|formatted_value("bdo_paymentstatus")}} |
{{paymentoptionslabel}}
{% form entity="bdo_registration" record=params.id mode="update" message=updatemsg %} {% endform %}
{{paymentinstructions}}
{% endif %} {#}End Payment Section{#} {#} Pick Sessions Section {#} {% fetchxml collection="sessions" cache="PT30M" %}
{% endif %} {#}End Pick Sessions Section {#} {% if lang == "fr" %}
{{confdatelabel}}
{{conf.bdo_starttime|date("Y-m-d g:i a", "America/New_York")}} {% else %}{{confdatelabel}}
{{conf.bdo_starttime|date("M d, Y g:i a", "America/New_York")}} {% endif %} {#} {% if lang == "fr" %}{{confdatelabel}}
{{conf.bdo_starttime|format_datetime(pattern="yyyy-MM-dd HH:mm zzz")}} to {{conf.bdo_endtime|format_datetime('long', 'long', locale='fr-CA')}} {% else %}{{confdatelabel}}
{{conf.bdo_starttime|format_datetime('long', 'long', locale='en-CA')}} to {{conf.bdo_endtime|format_datetime('long', 'long', locale='en-CA')}} {% endif %} {#}{% if conf.rbms_locationdetails != null %}
{{locationlabel}}
{{conf.rbms_locationdetails|raw}}{% endif %} {% if lang == "fr" %} {% if conf.rbms_conferenceshortdescriptionfrench != null %}
{{eventdescriptionlabel}}
{{conf.rbms_conferenceshortdescriptionfrench}}{% endif %} {% else %} {% if conf.rbms_conferenceshortdescription != null %}
{{eventdescriptionlabel}}
{{conf.rbms_conferenceshortdescription}}{% endif %} {% endif %} {% if user.is_bound %} {% endif %} [/icds_twig]
