<%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse %> <%! from django.conf import settings %> <%inherit file="../main.html" /> <%block name="bodyclass">purchase-receipt <%block name="pagetitle">${_("Register for [Course Name] | Receipt (Order")} ${order.id}) <%block name="content">

${_("Thank you for your Purchase!")}

${_("Please print this receipt page for your records. You should also have received a receipt in your email.")}

% for inst in instructions:

${inst}

% endfor

${_(settings.PLATFORM_NAME + " (" + settings.SITE_NAME + ")" + " Electronic Receipt")}


% for item in order_items: <% course_id = reverse('info', args=[item.course_id.to_deprecated_string()]) %> % if item.status == "purchased": % elif item.status == "refunded": % endif % endfor

${_("Order #")}${order.id}

${_("Date:")} ${order.purchase_time.date().isoformat()}

${_("Items ordered:")}

${_("Qty")} ${_("Description")} ${_("URL")} ${_("Unit Price")} ${_("Price")} ${_("Currency")}
${item.qty} ${item.line_desc} ${_('View Course')} ${"{0:0.2f}".format(item.unit_cost)} % if item.list_price != None: ${"{0:0.2f}".format(item.list_price)} % endif ${"{0:0.2f}".format(item.line_cost)} ${item.currency.upper()}
${item.qty} ${item.line_desc} ${"{0:0.2f}".format(item.unit_cost)} ${"{0:0.2f}".format(item.line_cost)} ${item.currency.upper()}
${_("Total Amount")}
${"{0:0.2f}".format(order.total_cost)}
% 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 % if order.total_cost > 0:

${_("Billed To:")}

${order.bill_to_cardtype} ${_("#:")} ${order.bill_to_ccnum}
${order.bill_to_first} ${order.bill_to_last}
${order.bill_to_street1}
${order.bill_to_street2}
${order.bill_to_city}, ${order.bill_to_state} ${order.bill_to_postalcode}
${order.bill_to_country.upper()}

% endif