haikal/templates/ledger/reports/income_statement.html
2025-06-12 21:01:13 +03:00

51 lines
2.1 KiB
HTML

{% extends 'base.html' %}
{% load i18n %}
{% load static %}
{% load custom_filters %}
{%block title%}{%trans 'Income Statement'%} {%endblock%}
{% block period_navigation %}
{% if unit_model %}
<div class="col-12">{% period_navigation 'unit-ic' %}</div>
{% elif entity %}
<div class="col-12">{% period_navigation 'entity-ic' %}</div>
{% elif ledger %}
<div class="col-12">{% period_navigation 'ledger-ic' %}</div>
{% endif %}
{% endblock %}
{% block content %}
<div class="card">
<div class="card-body text-center">
<div class="container mb-4">
<div class="row">
<div class="col">
{% if entity %}
<h1 class="display-4 font-weight-light">{{ entity.name }}</h1>
{% elif ledger %}
<h1 class="display-4 font-weight-light">{{ ledger.name }}</h1>
{% endif %}
{% if unit_model %}
<h3 class="h4 font-weight-medium font-italic">{{ unit_model.name }} {% trans 'Unit' %}</h3>
{% endif %}
<h1 class="display-4 font-weight-bold">{% trans 'Income Statement' %}</h1>
<h2 class="display-4 font-weight-light">
{% if quarter %}{{ year }} | Q{{ quarter }}
{% elif month %}{{ start_date | date:'F, Y' }}
{% else %}{{ _("Fiscal Year")}} {{ year }}
{% endif %}</h2>
<h3 class="h4 font-italic font-weight-light">
{{ from_date | date:'m/d/Y' }} - {{ to_date | date:'m/d/Y' }}
</h3>
</div>
</div>
</div>
{% income_statement_table io_model=object %}
<a class="btn btn-phoenix-primary w-100 my-2"
href="{{ request.path }}?format=pdf">{% trans 'Download PDF' %}</a>
</div>
</div>
{% endblock %}