<%namespace name='static' file='/static_content.html'/> <%inherit file="shopping_cart_flow.html" /> <%! from django.utils.translation import ugettext as _ from django.utils.translation import ungettext from django.core.urlresolvers import reverse from markupsafe import escape from openedx.core.lib.courses import course_image_url %> <%block name="billing_details_highlight"> % if order_type == 'business':
  • ${_('Billing Details')}
  • %endif <%block name="confirmation_highlight">class="active" <%block name="custom_content">
    <% courses_url = reverse('courses') %> % if receipt_has_donation_item: ${_("Thank you for your purchase!")} % for inst in instructions: ${inst} % endfor % elif order_type == 'personal': ## in case of multiple courses in single self purchase scenario, ## we will show the button View Dashboard <% dashboard_url = reverse('dashboard') %> ${_("View Dashboard")} ${_(u"You have successfully been enrolled for {course_names}. " u"The following receipt has been emailed to {receipient_emails}").format( course_names=u"{course_names}".format( course_names=escape(appended_course_names) ), receipient_emails=u"{receipient_emails}".format( receipient_emails=appended_recipient_emails ), )} % elif order_type == 'business': ${ungettext( "You have successfully purchased {number} course registration code for {course_names}.", "You have successfully purchased {number} course registration codes for {course_names}.", total_registration_codes ).format( number=total_registration_codes, course_names=u"{course_names}".format( course_names=escape(appended_course_names) ) )} ${_("The following receipt has been emailed to {receipient_emails}").format( receipient_emails=u"{receipient_emails}".format( receipient_emails=appended_recipient_emails, ) )} % endif
    % if order_type == 'business':

    ${_("Please send each professional one of these unique registration codes to enroll into the course. The confirmation/receipt email you will receive has an example email template with directions for the individuals enrolling.")}.

    % for reg_code_info in reg_code_info_list: % if reg_code_info['is_redeemed']: % else: % endif % endfor
    ${_("Course Name")} ${_("Enrollment Code")} ${_("Enrollment Link")} ${_("Status")}
    ${reg_code_info['course_name']} ${reg_code_info['code']}${reg_code_info['redemption_url']}${reg_code_info['redemption_url']} % if reg_code_info['is_redeemed']: ${_("Used")} % elif not reg_code_info['is_valid']: ${_("Invalid")} % else: ${_("Available")} % endif
    %endif

    ${_('Invoice')} #${order.id}${_('Date of purchase')}: ${order_purchase_date} ${_('Print Receipt')}

    % if order.total_cost > 0:

    ${_("Billed To Details")}:

    % if order_type == 'business':

    ${_('Company Name')}: % if order.company_name: ${order.company_name} % else: ${_('N/A')} % endif

    ${_('Purchase Order Number')}: % if order.customer_reference_number: ${order.customer_reference_number} % else: ${_('N/A')} % endif

    ${_('Company Contact Name')}: % if order.company_contact_name: ${order.company_contact_name} % else: ${_('N/A')} % endif

    ${_('Company Contact Email')}: % if order.company_contact_email: ${order.company_contact_email} % else: ${_('N/A')} % endif

    ${_('Recipient Name')}: % if order.recipient_name: ${order.recipient_name} % else: ${_('N/A')} % endif

    ${_('Recipient Email')}: % if order.recipient_email: ${order.recipient_email} % else: ${_('N/A')} % endif

    %endif

    ${_('Card Type')}: % if order.bill_to_cardtype: ${order.bill_to_cardtype} % else: ${_('N/A')} % endif

    ${_('Credit Card Number')}: % if order.bill_to_ccnum: ${order.bill_to_ccnum} % else: ${_('N/A')} % endif

    ${_('Name')}: % if order.bill_to_first or order.bill_to_last: ${order.bill_to_first} ${order.bill_to_last} % else: ${_('N/A')} % endif

    ${_('Address 1')}: % if order.bill_to_street1: ${order.bill_to_street1} % else: ${_('N/A')} % endif

    ${_('Address 2')}: % if order.bill_to_street2: ${order.bill_to_street2} % else: ${_('N/A')} % endif

    ${_('City')}: % if order.bill_to_city: ${order.bill_to_city} % else: ${_('N/A')} % endif

    ${_('State')}: % if order.bill_to_state: ${order.bill_to_state} % else: ${_('N/A')} % endif

    ${_('Country')}: % if order.bill_to_country: ${order.bill_to_country} % else: ${_('N/A')} % endif

    % endif % for item, course in shoppingcart_items: % if loop.index > 0 :
    %endif
    ${course.display_number_with_default | h} ${course.display_name_with_default_escaped} Image

    ${_('Registration for:')} ${ course.display_name | h }

    <% course_start_time = course.start_datetime_text() course_end_time = course.end_datetime_text() %> % if course_start_time or course_end_time: ${_("Course Dates")}: %endif % if course_start_time: ${course_start_time} %endif - % if course_end_time: ${course_end_time} %endif


    % if item.status == "purchased":
    % if item.is_discounted:
    ${_('Price per student:')} ${currency_symbol}${"{0:0.2f}".format(item.list_price)}
    ${_('Discount Applied:')} ${currency_symbol}${"{0:0.2f}".format(item.unit_cost)}
    % else:
    ${_('Price per student:')} ${currency_symbol}${"{0:0.2f}".format(item.unit_cost)}
    % endif
    ${item.qty}
    % elif item.status == "refunded":
    % if item.is_discounted:
    ${_('Price per student:')} ${currency_symbol}${"{0:0.2f}".format(item.list_price)}
    ${_('Discount Applied:')} ${currency_symbol}${"{0:0.2f}".format(item.unit_cost)}
    % else:
    ${_('Price per student:')} ${currency_symbol}${"{0:0.2f}".format(item.unit_cost)}
    % endif
    ${item.qty}
    %endif
    % endfor
    % if any_refunds: ## Translators: Please keep the "" and "" tags around your translation of the word "this" in your translation. ${_("Note: items with strikethough like this have been refunded.")} % endif ${_("Total")}: ${currency_symbol}${"{0:0.2f}".format(order.total_cost)} ${currency.upper()}
    ## Allow for a theming to be able to insert additional text at the bottom of the page <%include file="${static.get_template_path('receipt_custom_pane.html')}" />