2020-03-22 17:27:22 +00:00
|
|
|
{% extends "base.html" %}
|
2020-08-25 16:10:21 +00:00
|
|
|
{% comment %}
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
{% endcomment %}
|
2020-03-22 17:27:22 +00:00
|
|
|
{% load render_table from django_tables2 %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
2020-08-25 16:10:21 +00:00
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xl-12">
|
2020-09-04 13:53:00 +00:00
|
|
|
<div class="btn-group btn-group-toggle" style="width: 100%; padding: 0 0 2em 0">
|
2020-08-25 16:10:21 +00:00
|
|
|
<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>
|
|
|
|
<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>
|
2020-08-25 16:10:21 +00:00
|
|
|
</div>
|
2020-03-24 00:12:22 +00:00
|
|
|
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card bg-white mb-3">
|
|
|
|
<h3 class="card-header text-center">
|
|
|
|
{% trans "Opened remittances" %}
|
|
|
|
</h3>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% if opened_remittances.data %}
|
2020-08-25 16:10:21 +00:00
|
|
|
{% render_table opened_remittances %}
|
2020-03-23 22:42:37 +00:00
|
|
|
{% else %}
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card-body">
|
2020-03-23 22:42:37 +00:00
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% trans "There is no opened remittance." %}
|
|
|
|
</div>
|
2020-08-25 16:10:21 +00:00
|
|
|
</div>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% endif %}
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card-footer">
|
|
|
|
<a class="btn btn-sm btn-success" href="{% url 'treasury:remittance_create' %}">{% trans "New remittance" %}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-22 17:27:22 +00:00
|
|
|
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card bg-white mb-3">
|
|
|
|
<h3 class="card-header text-center">
|
|
|
|
{% trans "Transfers without remittances" %}
|
|
|
|
</h3>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% if special_transactions_no_remittance.data %}
|
2020-08-25 16:10:21 +00:00
|
|
|
{% render_table special_transactions_no_remittance %}
|
2020-03-23 22:42:37 +00:00
|
|
|
{% else %}
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card-body">
|
2020-03-23 22:42:37 +00:00
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% trans "There is no transaction without any linked remittance." %}
|
|
|
|
</div>
|
2020-08-25 16:10:21 +00:00
|
|
|
</div>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% endif %}
|
2020-08-25 16:10:21 +00:00
|
|
|
</div>
|
2020-03-23 21:43:16 +00:00
|
|
|
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card bg-white mb-3">
|
|
|
|
<h3 class="card-header text-center">
|
|
|
|
{% trans "Transfers with opened remittances" %}
|
|
|
|
</h3>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% if special_transactions_with_remittance.data %}
|
2020-08-25 16:10:21 +00:00
|
|
|
{% render_table special_transactions_with_remittance %}
|
2020-03-23 22:42:37 +00:00
|
|
|
{% else %}
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card-body">
|
2020-03-23 22:42:37 +00:00
|
|
|
<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>
|
2020-08-25 16:10:21 +00:00
|
|
|
</div>
|
2020-03-23 22:42:37 +00:00
|
|
|
{% endif %}
|
2020-08-25 16:10:21 +00:00
|
|
|
</div>
|
2020-03-23 21:43:16 +00:00
|
|
|
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card bg-white mb-3">
|
|
|
|
<h3 class="card-header text-center">
|
|
|
|
{% trans "Closed remittances" %}
|
|
|
|
</h3>
|
2020-07-25 15:25:57 +00:00
|
|
|
{% if closed_remittances.data %}
|
2020-08-25 16:10:21 +00:00
|
|
|
{% render_table closed_remittances %}
|
2020-07-25 15:25:57 +00:00
|
|
|
{% else %}
|
2020-08-25 16:10:21 +00:00
|
|
|
<div class="card-body">
|
2020-07-25 15:25:57 +00:00
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% trans "There is no closed remittance yet." %}
|
|
|
|
</div>
|
2020-08-25 16:10:21 +00:00
|
|
|
</div>
|
2020-07-25 15:25:57 +00:00
|
|
|
{% endif %}
|
2020-08-25 16:10:21 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|