diff --git a/analysis/__init__.py b/analysis/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/analysis/admin.py b/analysis/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/analysis/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/analysis/apps.py b/analysis/apps.py new file mode 100644 index 00000000..126ab0e5 --- /dev/null +++ b/analysis/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class AnalysisConfig(AppConfig): + name = 'analysis' diff --git a/analysis/models.py b/analysis/models.py new file mode 100644 index 00000000..71a83623 --- /dev/null +++ b/analysis/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/analysis/templates/analysis/reports/detail.html b/analysis/templates/analysis/reports/detail.html new file mode 100644 index 00000000..219ad46d --- /dev/null +++ b/analysis/templates/analysis/reports/detail.html @@ -0,0 +1,17 @@ +{% extends 'base.html' %} +{% load i18n fontawesome_5 %} + +{% block body %} +
{% trans 'Total' %} | +{% fa5_icon 'star' %} {% trans 'Checked' %} | +{% fa5_icon 'bookmark' %} {% trans 'Recorded' %} | +
---|---|---|
{{report.intervention_report.queryset.count}} | +{{report.intervention_report.queryset_checked.count}} | +{{report.intervention_report.queryset_recorded.count}} | +
{% trans 'Compensation type' %} | +{% trans 'Total' %} | +{% trans 'Checked' %} | +{% trans 'Recorded' %} | +
---|---|---|---|
{% trans 'Compensation' %} | +{{report.intervention_report.compensation_sum}} | +{{report.intervention_report.compensation_sum_checked}} | +{{report.intervention_report.compensation_sum_recorded}} | +
{% trans 'Payment' %} | +{{report.intervention_report.payment_sum}} | +{{report.intervention_report.payment_sum_checked}} | +{{report.intervention_report.payment_sum_recorded}} | +
{% trans 'Deductions' %} | +{{report.intervention_report.deduction_sum}} | +{{report.intervention_report.deduction_sum_checked}} | +{{report.intervention_report.deduction_sum_recorded}} | +
+ {% trans 'Law' %} + | ++ {% trans 'Checked' %} + | ++ {% trans 'Recorded' %} + | ++ {% trans 'Total' %} + | +
---|---|---|---|
+ {{law.short_name}}
+ + + {{law.long_name}} + + |
+ {{law.num_checked}} | +{{law.num_recorded}} | +{{law.num}} | +
{% trans 'Total' %} | +{{report.intervention_report.law_sum_checked}} | +{{report.intervention_report.law_sum_recorded}} | +{{report.intervention_report.law_sum}} | +