2020-03-22 17:27:22 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load render_table from django_tables2 %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
|
2020-03-24 00:12:22 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xl-12">
|
|
|
|
<div class="btn-group btn-group-toggle" style="width: 100%; padding: 0 0 2em 0" data-toggle="buttons">
|
|
|
|
<a href="{% url "treasury:invoice_list" %}" class="btn btn-sm btn-outline-primary">
|
|
|
|
{% trans "Invoice" %}s
|
|
|
|
</a>
|
|
|
|
<a href="#" class="btn btn-sm btn-outline-primary active">
|
|
|
|
{% trans "Remittance" %}s
|
|
|
|
</a>
|
2020-04-22 01:26:45 +00:00
|
|
|
<a href="{% url "treasury:soge_credits" %}" class="btn btn-sm btn-outline-primary">
|
|
|
|
{% trans "Société générale credits" %}
|
|
|
|
</a>
|
2020-03-24 00:12:22 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-03-23 21:43:16 +00:00
|
|
|
<h2>{% trans "Opened remittances" %}</h2>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% if opened_remittances.data %}
|
|
|
|
{% render_table opened_remittances %}
|
|
|
|
{% else %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% trans "There is no opened remittance." %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-03-22 17:27:22 +00:00
|
|
|
|
2020-03-23 21:43:16 +00:00
|
|
|
<a class="btn btn-primary" href="{% url 'treasury:remittance_create' %}">{% trans "New remittance" %}</a>
|
2020-03-22 17:27:22 +00:00
|
|
|
|
2020-03-23 21:43:16 +00:00
|
|
|
<hr>
|
|
|
|
|
|
|
|
<h2>{% trans "Transfers without remittances" %}</h2>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% if special_transactions_no_remittance.data %}
|
|
|
|
{% render_table special_transactions_no_remittance %}
|
|
|
|
{% else %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% trans "There is no transaction without any linked remittance." %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-03-23 21:43:16 +00:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<h2>{% trans "Transfers with opened remittances" %}</h2>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% if special_transactions_with_remittance.data %}
|
|
|
|
{% render_table special_transactions_with_remittance %}
|
|
|
|
{% else %}
|
|
|
|
<div class="alert alert-warning">
|
2020-03-24 19:22:15 +00:00
|
|
|
{% trans "There is no transaction with an opened linked remittance." %}
|
2020-03-23 22:42:37 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-03-23 21:43:16 +00:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<h2>{% trans "Closed remittances" %}</h2>
|
2020-07-25 15:25:57 +00:00
|
|
|
{% if closed_remittances.data %}
|
|
|
|
{% render_table closed_remittances %}
|
|
|
|
{% else %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% trans "There is no closed remittance yet." %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-03-22 17:27:22 +00:00
|
|
|
{% endblock %}
|