Changeset View
Changeset View
Standalone View
Standalone View
subscriptions/templates/looper/settings/receipt.html
| {% extends 'users/settings/base.html' %} | {% extends 'users/settings/base.html' %} | ||||
| {% load common_extras %} | {% load common_extras %} | ||||
| {% load subscriptions %} | {% load subscriptions %} | ||||
| {% block settings %} | {% block settings %} | ||||
| <p class="subtitle">Receipts</p> | <p class="subtitle">Receipts</p> | ||||
| <h1 class="mb-3">Receipt #{{ order.id }}</h1> | <h1 class="mb-3">Receipt #{{ order.id }}</h1> | ||||
| <div class="receipt mt-2"> | <div class="receipt mt-2"> | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">Receipt ID</dt> | <dt class="col">Receipt ID</dt> | ||||
| <dd class="col">{{ order.id }}</dd> | <dd class="col">{{ order.id }}</dd> | ||||
| </dl> | </dl> | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">Payment received on</dt> | <dt class="col">Payment received on</dt> | ||||
| <dd class="col">{{ order.paid_at|default:order.created_at }}</dd> | <dd class="col">{{ order.paid_at|default:order.created_at }}</dd> | ||||
| </dl> | </dl> | ||||
| <h2>Subscription</h2> | <h2>Subscription</h2> | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">Renewal type</dt> | <dt class="col">Renewal type</dt> | ||||
| <dd class="col">{{ order.subscription.collection_method|capfirst}}</dd> | <dd class="col">{{ order.subscription.collection_method|capfirst}}</dd> | ||||
| </dl> | </dl> | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">Renewal period</dt> | <dt class="col">Renewal period</dt> | ||||
| <dd class="col">{{ order.subscription|renewal_period|capfirst }}</dd> | <dd class="col">{{ order.subscription|renewal_period|capfirst }}</dd> | ||||
| </dl> | </dl> | ||||
| <h2>Billing Address</h2> | <h2>Billing Address</h2> | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">Address</dt> | <dt class="col">Address</dt> | ||||
| <dd class="col">{{ order.billing_address|linebreaks }}</dd> | <dd class="col">{{ order.billing_address|linebreaks }}</dd> | ||||
| </dl> | </dl> | ||||
| {% if order.vat_number %} | {% if order.vat_number %} | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">VATIN</dt> | <dt class="col">VATIN</dt> | ||||
| <dd class="col">{{ order.vat_number }}</dd> | <dd class="col">{{ order.vat_number }}</dd> | ||||
| </dl> | </dl> | ||||
| {% endif %} | {% endif %} | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">E-mail</dt> | <dt class="col">E-mail</dt> | ||||
| <dd class="col">{{ order.email }}</dd> | <dd class="col">{{ order.email }}</dd> | ||||
| </dl> | </dl> | ||||
| <h2>Payment Information</h2> | <h2>Payment Information</h2> | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">Amount paid</dt> | <dt class="col">Amount paid</dt> | ||||
| <dd class="col">{{ order.price.with_currency_symbol_nonocents }}</dd> | <dd class="col">{{ order.price.with_currency_symbol_nonocents }}</dd> | ||||
| </dl> | </dl> | ||||
| {% with taxable=order.taxable %} | {% with taxable=order.taxable %} | ||||
| {% if taxable.tax_is_charged %} | {% if taxable.tax_is_charged %} | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col"></dt> | <dt class="col"></dt> | ||||
| <dd class="col">{{ taxable.format_tax_amount }}</dd> | <dd class="col">{{ taxable.format_tax_amount }}</dd> | ||||
| </dl> | </dl> | ||||
| {% endif %} | {% endif %} | ||||
| {% endwith %} | {% endwith %} | ||||
| {% with refunded=order.total_refunded %} | {% with refunded=order.total_refunded %} | ||||
| {% if refunded %} | {% if refunded %} | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">Amount refunded</dt> | <dt class="col">Amount refunded</dt> | ||||
| <dd class="col">{{ refunded.with_currency_symbol_nonocents }}</dd> | <dd class="col">{{ refunded.with_currency_symbol_nonocents }}</dd> | ||||
| </dl> | </dl> | ||||
| {% endif %} | {% endif %} | ||||
| {% endwith %} | {% endwith %} | ||||
| <dl class="row"> | <dl class="row"> | ||||
| <dt class="col">Payment method</dt> | <dt class="col">Payment method</dt> | ||||
| <dd class="col">{{ order.payment_method.recognisable_name }}</dd> | <dd class="col">{{ order.payment_method.recognisable_name }}</dd> | ||||
| </dl> | </dl> | ||||
| </div> | </div> | ||||
| <hr/> | <hr/> | ||||
| <a class="btn" href="{% url 'subscriptions:receipts' %}">← back to receipts</a> | <a class="btn" href="{% url 'subscriptions:receipts' %}">← back to receipts</a> | ||||
| {% endblock settings %} | {% endblock settings %} | ||||