{% extends "datacenterlight/base_hosting.html" %} {% load staticfiles bootstrap3 i18n custom_tags humanize %} {% block content %}
{% trans "Date" %}: {% now "Y-m-d h:i a" %}
{% with request.session.billing_address_data as billing_address %}
{{billing_address.cardholder_name}}
{{billing_address.street_address}}, {{billing_address.postal_code}}
{{billing_address.city}}, {{billing_address.country}}
{% endwith %}
{{cc_brand|default:_('Credit Card')}} {% trans "ending in" %} ****{{cc_last4}}
{% trans "Expiry" %} {{cc_exp_year}}/{{cc_exp_month}}
{{request.user.email}}
{% trans "Product" %}: {{ generic_payment_details.product_name }}
{% trans "Price" %}: CHF {{generic_payment_details.amount_before_vat|floatformat:2|intcomma}}
{% trans "VAT for" %} {{generic_payment_details.vat_country}} ({{generic_payment_details.vat_rate}}%) : CHF {{generic_payment_details.vat_amount|floatformat:2|intcomma}}
{% trans "Total Amount" %} : CHF {{generic_payment_details.amount|floatformat:2|intcomma}}
{% else %}{% trans "Amount" %}: CHF {{generic_payment_details.amount|floatformat:2|intcomma}}
{% endif %} {% if generic_payment_details.description %}{% trans "Description" %}: {{generic_payment_details.description}}
{% endif %} {% if generic_payment_details.recurring %}{% trans "Recurring" %}: Yes
{% endif %}{% trans "Product" %}: {{ request.session.template.name }}
{% trans "Cores" %}: {{vm.cpu|floatformat}}
{% trans "Memory" %}: {{vm.memory|intcomma}} GB
{% trans "Disk space" %}: {{vm.disk_size|intcomma}} GB
{% trans "Subtotal" %} {{vm.price|floatformat:2|intcomma}} CHF
{% trans "VAT for" %} {{vm.vat_country}} ({{vm.vat_percent}}%) : {{vm.vat|floatformat:2|intcomma}} CHF
{% endif %} {% if vm.discount.amount > 0 %}{%trans "Discount" as discount_name %} {{ vm.discount.name|default:discount_name }} - {{ vm.discount.amount }} CHF
{% endif %}{% trans "Total" %} {{vm.total_price|floatformat:2|intcomma}} CHF