# 177 Timespanreport column order
* rearranges the column order so 'Total' will always be the first column
This commit is contained in:
		
							parent
							
								
									8245cf5bbb
								
							
						
					
					
						commit
						30d8a3c6e5
					
				@ -15,40 +15,40 @@
 | 
			
		||||
        <thead>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <th scope="col">{% trans 'Area of responsibility' %}</th>
 | 
			
		||||
            <th scope="col">{% trans 'Total' %}</th>
 | 
			
		||||
            <th scope="col">{% trans 'Number single areas' %}</th>
 | 
			
		||||
            <th scope="col">{% fa5_icon 'star' %} {% trans 'Checked' %}</th>
 | 
			
		||||
            <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
            <th scope="col">{% trans 'Number single areas' %}</th>
 | 
			
		||||
            <th scope="col">{% trans 'Total' %}</th>
 | 
			
		||||
        </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{% trans 'Conservation office by law' %}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_unb_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.num_single_surfaces_total_unb|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_unb_checked_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_unb_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.num_single_surfaces_total_unb|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_unb_count|default_if_zero:"-"}}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{% trans 'Land-use planning' %}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_tbp_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.num_single_surfaces_total_tbp|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_tbp_checked_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_tbp_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.num_single_surfaces_total_tbp|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_tbp_count|default_if_zero:"-"}}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{% trans 'Other registration office' %}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_other_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.num_single_surfaces_total_other|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_other_checked_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_other_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.num_single_surfaces_total_other|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.compensation_report.queryset_registration_office_other_count|default_if_zero:"-"}}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td><strong>{% trans 'Total' %}</strong></td>
 | 
			
		||||
                <td><strong>{{report.compensation_report.queryset_count|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
                <td><strong>{{report.compensation_report.num_single_surfaces_total|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
                <td><strong>{{report.compensation_report.queryset_checked_count|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
                <td><strong>{{report.compensation_report.queryset_recorded_count|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
                <td><strong>{{report.compensation_report.num_single_surfaces_total|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
                <td><strong>{{report.compensation_report.queryset_count|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
 | 
			
		||||
@ -10,14 +10,14 @@
 | 
			
		||||
    <table class="table table-hover">
 | 
			
		||||
        <thead>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <th scope="col" class="w-25">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
                <th scope="col">{% trans 'Total' %}</th>
 | 
			
		||||
                <th scope="col" class="w-25">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{{report.eco_account_report.queryset_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.eco_account_report.queryset_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.eco_account_report.queryset_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
 | 
			
		||||
@ -5,18 +5,28 @@
 | 
			
		||||
    <table class="table table-hover">
 | 
			
		||||
        <thead>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %} {% trans 'Surface' %}</th>
 | 
			
		||||
                <th scope="col" class="w-25">{% trans 'Total' %}</th>
 | 
			
		||||
                <th scope="col" class="w-25">{% trans 'Total' %} {% trans 'Surface' %}</th>
 | 
			
		||||
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %} {% trans 'Surface' %}</th>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{{report.eco_account_report.queryset_deductions_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.eco_account_report.recorded_deductions_sq_m|default_if_zero:"-"}}m²</td>
 | 
			
		||||
                <td>{{report.eco_account_report.queryset_deductions_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.eco_account_report.deductions_sq_m|default_if_zero:"-"}}m²</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    {{report.eco_account_report.deductions_sq_m|default_if_zero:"-"}}
 | 
			
		||||
                    {% if report.eco_account_report.deductions_sq_m > 0 %}
 | 
			
		||||
                        m²
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </td>
 | 
			
		||||
                <td>{{report.eco_account_report.queryset_deductions_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>
 | 
			
		||||
                    {{report.eco_account_report.recorded_deductions_sq_m|default_if_zero:"-"}}
 | 
			
		||||
                    {% if report.eco_account_report.recorded_deductions_sq_m > 0 %}
 | 
			
		||||
                        m²
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
 | 
			
		||||
@ -14,16 +14,16 @@
 | 
			
		||||
    <table class="table table-hover">
 | 
			
		||||
        <thead>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <th scope="col" class="w-25">{% trans 'Total' %}</th>
 | 
			
		||||
                <th scope="col">{% fa5_icon 'star' %} {% trans 'Checked' %}</th>
 | 
			
		||||
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
                <th scope="col" class="w-25">{% trans 'Total' %}</th>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{{report.intervention_report.queryset_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.intervention_report.queryset_checked_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.intervention_report.queryset_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.intervention_report.queryset_count|default_if_zero:"-"}}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
 | 
			
		||||
@ -5,29 +5,29 @@
 | 
			
		||||
        <thead>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <th class="w-25" scope="col">{% trans 'Compensation type' %}</th>
 | 
			
		||||
            <th class="w-25" scope="col">{% trans 'Total' %}</th>
 | 
			
		||||
            <th class="w-25" scope="col">{% fa5_icon 'star' %} {% trans 'Checked' %}</th>
 | 
			
		||||
            <th class="w-25" scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
            <th class="w-25" scope="col">{% trans 'Total' %}</th>
 | 
			
		||||
        </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <th>{% trans 'Compensation' %}</th>
 | 
			
		||||
            <td>{{report.intervention_report.compensation_sum|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.compensation_sum_checked|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.compensation_sum_recorded|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.compensation_sum|default_if_zero:"-"}}</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <th>{% trans 'Payment' %}</th>
 | 
			
		||||
            <td>{{report.intervention_report.payment_sum|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.payment_sum_checked|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.payment_sum_recorded|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.payment_sum|default_if_zero:"-"}}</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <th>{% trans 'Deductions' %}</th>
 | 
			
		||||
            <td>{{report.intervention_report.deduction_sum|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.deduction_sum_checked|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.deduction_sum_recorded|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{report.intervention_report.deduction_sum|default_if_zero:"-"}}</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
 | 
			
		||||
@ -13,15 +13,15 @@
 | 
			
		||||
            <th class="w-25" scope="col">
 | 
			
		||||
                {% trans 'Law' %}
 | 
			
		||||
            </th>
 | 
			
		||||
            <th scope="col">
 | 
			
		||||
                {% trans 'Total' %}
 | 
			
		||||
            </th>
 | 
			
		||||
            <th scope="col">
 | 
			
		||||
                {% fa5_icon 'star' %} {% trans 'Checked' %}
 | 
			
		||||
            </th>
 | 
			
		||||
            <th scope="col">
 | 
			
		||||
                {% fa5_icon 'bookmark' %} {% trans 'Recorded' %}
 | 
			
		||||
            </th>
 | 
			
		||||
            <th scope="col">
 | 
			
		||||
                {% trans 'Total' %}
 | 
			
		||||
            </th>
 | 
			
		||||
        </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
@ -34,16 +34,16 @@
 | 
			
		||||
                    {{law.long_name}}
 | 
			
		||||
                </small>
 | 
			
		||||
            </td>
 | 
			
		||||
            <td>{{law.num|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{law.num_checked|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{law.num_recorded|default_if_zero:"-"}}</td>
 | 
			
		||||
            <td>{{law.num|default_if_zero:"-"}}</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        {% endfor %}
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td><strong>{% trans 'Total' %}</strong></td>
 | 
			
		||||
            <td><strong>{{report.intervention_report.law_sum|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
            <td><strong>{{report.intervention_report.law_sum_checked|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
            <td><strong>{{report.intervention_report.law_sum_recorded|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
            <td><strong>{{report.intervention_report.law_sum|default_if_zero:"-"}}</strong></td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
 | 
			
		||||
@ -14,26 +14,26 @@
 | 
			
		||||
    <table class="table table-hover">
 | 
			
		||||
        <thead>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <th scope="col" class="w-25">{% fa5_icon 'star' %} {% trans 'Type' %}</th>
 | 
			
		||||
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
                <th scope="col" class="w-25">{% trans 'Type' %}</th>
 | 
			
		||||
                <th scope="col">{% trans 'Total' %}</th>
 | 
			
		||||
                <th scope="col">{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}</th>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </thead>
 | 
			
		||||
        <tbody>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{% trans 'Intervention' %}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_intervention_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_intervention_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_intervention_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{% trans 'Compensation' %}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_comps_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_comps_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_comps_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
            <tr>
 | 
			
		||||
                <td>{% trans 'Eco-account' %}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_acc_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_acc_count|default_if_zero:"-"}}</td>
 | 
			
		||||
                <td>{{report.old_data_report.queryset_acc_recorded_count|default_if_zero:"-"}}</td>
 | 
			
		||||
            </tr>
 | 
			
		||||
        </tbody>
 | 
			
		||||
    </table>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user