2018-10-31 04:19:04 +00:00
{% extends "registrasion/base.html" %}
2016-03-30 04:13:50 +00:00
{% load bootstrap %}
{% load registrasion_tags %}
2020-01-05 02:02:12 +00:00
{% block head_title %}Credit Note #{{ credit_note.id }}{% endblock %}
{% block page_title %}Credit Note #{{ credit_note.id }}{% endblock %}
{% block proposals_body %}
< div class = "mb-3" >
< h2 > Details< / h2 >
2016-03-30 04:13:50 +00:00
2020-01-05 02:02:12 +00:00
{% with note_user=credit_note.invoice.user %}
2016-03-30 04:13:50 +00:00
< ul >
< li > < strong > Number:< / strong > {{ credit_note.id }}
2016-09-30 10:46:05 +00:00
< li > < strong > Attention:< / strong > {{ credit_note.invoice.recipient }}< / li >
2016-12-07 11:11:01 +00:00
< li > < strong > User:< / strong > {{ credit_note.invoice.user.email }} ({{ credit_note.invoice.user.id}})< / li >
2016-03-30 04:13:50 +00:00
< li > < strong > Value:< / strong > {{ credit_note.value }}< / li >
< li > < strong > Status:< / strong > {{ credit_note.status }}< / li >
< / ul >
2020-01-05 02:02:12 +00:00
{% endwith %}
2016-03-30 04:13:50 +00:00
2020-01-05 02:02:12 +00:00
< p > This credit note was generated from funds excess from invoice {{ credit_note.invoice.id }}.< / p >
{% if user.is_staff %}
< div >
< a class = "btn btn-info" href = "{% url " attendee " credit_note . invoice . user . id % } " > View attendee< / a >
< a class = "btn btn-light" href = "{% url " invoice_update " credit_note . invoice . id % } " > View source invoice< / a >
< / div >
{% endif %}
< / div >
2016-03-30 04:13:50 +00:00
{% if credit_note.is_unclaimed %}
2017-12-23 02:13:43 +00:00
< form class = "form-horizontal" method = "post" action = "" novalidate >
2016-03-30 04:13:50 +00:00
{% csrf_token %}
2020-01-05 02:02:12 +00:00
< div class = "mb-3" >
< h3 > Apply to invoice< / h3 >
< p > You can apply this credit note to an unpaid invoice.< / p >
2016-03-30 04:13:50 +00:00
2020-01-05 02:02:12 +00:00
< p > < strong > This credit note belongs to:< / strong > {{ credit_note.invoice.user.email }} ({{ credit_note.invoice.user.id}}). You can apply this credit note to any user's invoice.< / p >
2016-12-07 11:11:01 +00:00
2016-03-30 04:13:50 +00:00
{{ apply_form|bootstrap }}
< div class = "form-actions" >
< input class = "btn btn-primary" type = "submit" value = "Apply to invoice" / >
< / div >
2020-01-05 02:02:12 +00:00
< / div >
< div class = "mb-3" >
< h3 > Generate cancellation fee< / h3 >
< p > You can generate an invoice for a cancellation fee, resulting in an invoice
and a new credit note.
< / p >
2016-09-30 10:46:05 +00:00
{{ cancellation_fee_form|bootstrap }}
< div class = "form-actions" >
< input class = "btn btn-primary" type = "submit" value = "Generate fee" / >
< / div >
2020-01-05 02:02:12 +00:00
< / div >
2016-09-30 10:46:05 +00:00
2020-01-05 02:02:12 +00:00
< div class = "mb-3" >
< h3 > Stripe Refund< / h3 >
2016-09-30 10:46:05 +00:00
2020-01-05 02:02:12 +00:00
< p > < a href = "{% url 'registripe_refund' credit_note.id %}" > View Stripe refund options< / a > < / p >
< / div >
2016-09-30 10:46:05 +00:00
2020-01-05 02:02:12 +00:00
< div class = "mb-3" >
< h3 > Manual refund< / h3 >
< p > You can mark this credit note as refunded, and handle the refund manually.
< / p >
2016-03-30 04:13:50 +00:00
{{ refund_form|bootstrap }}
< div class = "form-actions" >
< input class = "btn btn-primary" type = "submit" value = "Mark as refunded" / >
< / div >
2020-01-05 02:02:12 +00:00
< / div >
2016-03-30 04:13:50 +00:00
< / form >
{% endif %}
{% endblock %}