haikal/templates/ledger/reports/cash_flow_statement.html
2025-07-30 17:38:54 +03:00

54 lines
2.6 KiB
HTML

{% extends 'base.html' %}
{% load i18n %}
{% load static %}
{% load custom_filters %}
{% block title %}
{% trans 'Cash Flow Statement' %} {% endblock %}
{% block period_navigation %}
{% if unit_model and entity %}
<div class="col-12">{% period_navigation 'unit-cf' %}</div>
{% elif entity %}
<div class="col-12">{% period_navigation 'entity-cf' %}</div>
{% elif ledger %}
<div class="col-12">{% period_navigation 'ledger-cf' %}</div>
{% elif unit_model %}
<div class="col-12">{% period_navigation 'unit-cf' %}</div>
{% endif %}
{% endblock period_navigation %}
{% block content %}
<div class="card">
<div class="card-body text-center">
<div class="container mb-4">
<div class="row">
<div class="col">
{% if unit_model and entity %}
<h1 class="display-4 font-weight-light">{{ entity.name }}</h1>
{% elif entity %}
<h1 class="display-4 font-weight-light">{{ entity.name }}</h1>
{% elif ledger %}
<h1 class="display-4 font-weight-light">{{ ledger.name }}</h1>
{% endif %}
<h1 class="display-4 font-weight-bold">{% trans 'Cash Flow Statement' %}</h1>
{% if unit_model %}
<h3 class="h4 font-weight-bold text-success">{{ unit_model.name }} {% trans 'Unit' %}</h3>
{% endif %}
<h2 class="display-4 font-weight-light">
{% if quarter %}
{{ year }} | Q{{ quarter }}
{% elif month %}
{{ start_date | date:'F, Y' }}
{% else %}
{% trans '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>
{% cash_flow_statement io_model=object %}
<a class="btn btn-phoenix-primary w-100 my-2"
href="{{ request.path }}?format=pdf"><i class="fa-solid fa-arrow-down me-1"></i>{% trans 'Download PDF' %}</a>
</div>
</div>
{% endblock %}