Commit a86cb725 authored by Patrick Kimber's avatar Patrick Kimber

tidy

parent 95a9eb87
Pipeline #81372867 passed with stage
in 5 minutes and 35 seconds
{% extends 'dash/base.html' %}{% load humanize %} {% block sub_title %} Reconcile Day View {% endblock sub_title %} {% block sub_heading %} Reconcile Day View for {{ batch_date|date:"l, jS F Y"}} {% endblock sub_heading %} {% block content %}
{% extends 'dash/base.html' %}
{% load humanize %}
<div class="pure-menu pure-menu-horizontal">
<ul class="pure-menu-list">
<a href="{% url 'invoice.reconcile.day' year=yesturday.year month=yesturday.month day=yesturday.day %}" class="pure-menu-link">
<i class="fa fa-history"></i> Previous Day
</a>
</ul>
<ul class="pure-menu-list">
<a href="{% url 'invoice.reconcile.day' year=tomorrow.year month=tomorrow.month day=tomorrow.day %}" class="pure-menu-link">
<i class="fa fa-history"></i> Next Day
</a>
</ul>
</div>
{% block sub_title %}
Reconcile Day View
{% endblock sub_title %}
<h1>Issues</h1>
{% if invoiceissue_list %}
<div class="pure-g">
<div class="pure-u-1">
<table class="pure-table pure-table-bordered" width="100%">
{% include 'invoice/_invoice_issue_list.html' %}
</table>
</div>
</div>
{% else %}
No invoice issues
{% endif %}
<h1>Batches</h1>
{% if batches %}
<div class="pure-g">
<div class="pure-u-1 ">
<div class="r-box">
<table width="100%" class="pure-table pure-table-bordered small-margin-top">
<tbody>
<tr>
<td>Total net:</td>
<td>£ {{ batch_net|intcomma }}</td>
</tr>
<tr>
<td>Total gross:</td>
<td>£ {{ batch_gross|intcomma }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
{% block sub_heading %}
Reconcile Day View for {{ batch_date|date:"l, jS F Y"}}
{% endblock sub_heading %}
<div class="pure-g">
<div class="pure-u-1">
<table class="pure-table pure-table-bordered" width="100%">
<thead>
<tr valign="top">
<th>Number</th>
<th>Currency</th>
<th>Payment Processor</th>
</tr>
</thead>
<tbody>
{% for batch in batches %}
<tr valign="top">
<td>
<a href="{% url 'invoice.batch.invoice.list' batch.pk %}">
{{ batch.pk }}
</a>
</td>
<td>
{{ batch.currency.slug }}
</td>
<td>
{{ batch.payment_processor.slug }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% block content %}
<div class="pure-menu pure-menu-horizontal">
<ul class="pure-menu-list">
<a href="{% url 'invoice.reconcile.day' year=yesturday.year month=yesturday.month day=yesturday.day %}" class="pure-menu-link">
<i class="fa fa-history"></i> Previous Day
</a>
</ul>
<ul class="pure-menu-list">
<a href="{% url 'invoice.reconcile.day' year=tomorrow.year month=tomorrow.month day=tomorrow.day %}" class="pure-menu-link">
<i class="fa fa-history"></i> Next Day
</a>
</ul>
</div>
</div>
{% else %} No invoice batches {% endif %}
<h1>Unbatched Invoices</h1>
{% if invoices %}
<div class="pure-g">
<div class="pure-u-1 ">
<div class="r-box">
<table width="100%" class="pure-table pure-table-bordered small-margin-top">
<tbody>
<tr>
<td>Total net:</td>
<td> £ {{invoice_net|intcomma}} </td>
</tr>
<tr>
<td>Total gross:</td>
<td> £ {{invoice_gross|intcomma}} </td>
</tr>
</tbody>
</table>
<h1>Issues</h1>
{% if invoiceissue_list %}
<div class="pure-g">
<div class="pure-u-1">
<table class="pure-table pure-table-bordered" width="100%">
{% include 'invoice/_invoice_issue_list.html' %}
</table>
</div>
</div>
</div>
</div>
<div class="pure-g">
<div class="pure-u-1">
<table class="pure-table pure-table-bordered" width="100%">
<thead>
<tr valign="top">
<th>Number</th>
<th>Currency</th>
</tr>
</thead>
<tbody>
{% for invoice in invoices %}
<tr valign="top">
<td>
<a href="{% url 'invoice.detail' invoice.pk %}">
{{ invoice.invoice_number }}
</a>
</td>
<td>
{{ invoice.currency.slug }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %} No unbatched invoices {% endif %}
<h1>Credit Notes</h1>
{% if credit_notes %}
<div class="pure-g">
<div class="pure-u-1">
<table class="pure-table pure-table-bordered" width="100%">
<thead>
<tr valign="top">
<th>Number</th>
<th>Currency</th>
</tr>
</thead>
<tbody>
{% for credit_note in credit_notes %}
<tr valign="top">
<td>
<a href="{% url 'invoice.detail' credit_note.pk %}">
{{ credit_note.invoice_number }}
</a>
</td>
<td>
{{ credit_note.currency.slug }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %} No credit notes {% endif %} {% endblock content %}
{% else %}
No invoice issues
{% endif %}
<h1>Batches</h1>
{% if batches %}
<div class="pure-g">
<div class="pure-u-1 ">
<div class="r-box">
<table width="100%" class="pure-table pure-table-bordered small-margin-top">
<tbody>
<tr>
<td>Total net:</td>
<td>£ {{ batch_net|intcomma }}</td>
</tr>
<tr>
<td>Total gross:</td>
<td>£ {{ batch_gross|intcomma }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="pure-g">
<div class="pure-u-1">
<table class="pure-table pure-table-bordered" width="100%">
<thead>
<tr valign="top">
<th>Number</th>
<th>Currency</th>
<th>Payment Processor</th>
</tr>
</thead>
<tbody>
{% for batch in batches %}
<tr valign="top">
<td>
<a href="{% url 'invoice.batch.invoice.list' batch.pk %}">
{{ batch.pk }}
</a>
</td>
<td>
{{ batch.currency.slug }}
</td>
<td>
{{ batch.payment_processor.slug }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
No invoice batches
{% endif %}
<h1>Unbatched Invoices</h1>
{% if invoices %}
<div class="pure-g">
<div class="pure-u-1 ">
<div class="r-box">
<table width="100%" class="pure-table pure-table-bordered small-margin-top">
<tbody>
<tr>
<td>Total net:</td>
<td> £ {{invoice_net|intcomma}} </td>
</tr>
<tr>
<td>Total gross:</td>
<td> £ {{invoice_gross|intcomma}} </td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="pure-g">
<div class="pure-u-1">
<table class="pure-table pure-table-bordered" width="100%">
<thead>
<tr valign="top">
<th>Number</th>
<th>Currency</th>
</tr>
</thead>
<tbody>
{% for invoice in invoices %}
<tr valign="top">
<td>
<a href="{% url 'invoice.detail' invoice.pk %}">
{{ invoice.invoice_number }}
</a>
</td>
<td>
{{ invoice.currency.slug }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
No unbatched invoices
{% endif %}
<h1>Credit Notes</h1>
{% if credit_notes %}
<div class="pure-g">
<div class="pure-u-1">
<table class="pure-table pure-table-bordered" width="100%">
<thead>
<tr valign="top">
<th>Number</th>
<th>Currency</th>
</tr>
</thead>
<tbody>
{% for credit_note in credit_notes %}
<tr valign="top">
<td>
<a href="{% url 'invoice.detail' credit_note.pk %}">
{{ credit_note.invoice_number }}
</a>
</td>
<td>
{{ credit_note.currency.slug }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
No credit notes
{% endif %}
{% endblock content %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment