{% extends "base.html" %} {% block header %}Company Master{% endblock %} {% block content %}
{% set total_companies = pagination.total if pagination else 0 %} {% set active_on_page = pagination.items|selectattr("is_active")|list|length if pagination and pagination.items else 0 %} {% set inactive_on_page = pagination.items|rejectattr("is_active")|list|length if pagination and pagination.items else 0 %} {% set total_branches_on_page = namespace(count=0) %} {% for c in pagination.items %} {% set total_branches_on_page.count = total_branches_on_page.count + (branches_by_company.get(c.id, [])|length) %} {% endfor %}
Master Configuration

Company Master

Manage company profiles, PAN, branches, GST details, Tally mapping and invoice branch codes.
Companies
{{ total_companies }}
Matching current filter
Branches On Page
{{ total_branches_on_page.count }}
Configured company branches
Inactive On Page
{{ inactive_on_page }}
Hidden unless inactive filter is enabled
Filters
Search companies by name or PAN and optionally include inactive companies.
Reset
{% if pagination.items|length == 0 %}
No companies found
No companies match the current filters.
{% endif %} {% for c in pagination.items %} {% set branches = branches_by_company.get(c.id, []) %} {% set open = (open_company == c.id) %}
Branches
GST, State, Tally Company and invoice branch code configuration for {{ c.name }}.
{{ branches|length }} branch(es)
{% if branches|length == 0 %} {% endif %} {% for b in branches %} {% endfor %}
Branch Country State GST MSME Tally Company Address Status Action
No branches added for this company.
{{ b.branch_name }}
{% if b.branch_code %}
Code: {{ b.branch_code }}
{% endif %}
{% if b.country %} {{ b.country }} {% else %}
Missing
{% endif %}
{% if b.state %} {{ b.state }} {% else %}
Missing
Required for GST
{% endif %}
{{ b.gst_no or "-" }} {{ b.msme_no or "-" }} {% if b.tally_company_name %} {{ b.tally_company_name }} {% else %}
Missing
Required for Tally sync
{% endif %}
{{ b.branch_address or "-" }} {% if b.is_active %} Active {% else %} Inactive {% endif %}
{% endfor %}
{% if pagination.pages > 1 %} {% endif %}
{% endblock %}