mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Link transactions and remittances
This commit is contained in:
		@@ -4,19 +4,37 @@
 | 
			
		||||
{% block content %}
 | 
			
		||||
 | 
			
		||||
    <h2>{% trans "Opened remittances" %}</h2>
 | 
			
		||||
    {% render_table opened_remittances %}
 | 
			
		||||
    {% if opened_remittances.data %}
 | 
			
		||||
        {% render_table opened_remittances %}
 | 
			
		||||
    {% else %}
 | 
			
		||||
        <div class="alert alert-warning">
 | 
			
		||||
            {% trans "There is no opened remittance." %}
 | 
			
		||||
        </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    <a class="btn btn-primary" href="{% url 'treasury:remittance_create' %}">{% trans "New remittance" %}</a>
 | 
			
		||||
 | 
			
		||||
    <hr>
 | 
			
		||||
 | 
			
		||||
    <h2>{% trans "Transfers without remittances" %}</h2>
 | 
			
		||||
    {% render_table special_transactions_no_remittance %}
 | 
			
		||||
    {% 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 %}
 | 
			
		||||
 | 
			
		||||
    <hr>
 | 
			
		||||
 | 
			
		||||
    <h2>{% trans "Transfers with opened remittances" %}</h2>
 | 
			
		||||
    {% render_table special_transactions_with_remittance %}
 | 
			
		||||
    {% if special_transactions_with_remittance.data %}
 | 
			
		||||
        {% render_table special_transactions_with_remittance %}
 | 
			
		||||
    {% else %}
 | 
			
		||||
        <div class="alert alert-warning">
 | 
			
		||||
            {% trans "There is no transaction without an opened linked remittance." %}
 | 
			
		||||
        </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
 | 
			
		||||
    <hr>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								templates/treasury/specialtransactionproxy_form.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								templates/treasury/specialtransactionproxy_form.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
{% extends "base.html" %}
 | 
			
		||||
{% load static %}
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
{% load crispy_forms_tags pretty_money %}
 | 
			
		||||
{% load render_table from django_tables2 %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
    <p><a class="btn btn-default" href="{% url 'treasury:remittance_list' %}">{% trans "Remittances list" %}</a></p>
 | 
			
		||||
    {% crispy form %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user