{% extends "pos/base.html" %} {% load static %} {% block stylesheets %} {% endblock %} {% block content %}

Branch Subscription Manager

Search a branch → load all branches of its master → update subscriptions & record payments
Payments Report
{% if messages %} {% for m in messages %}
{{ m }}
{% endfor %} {% endif %}
Search Branch
Search by branch name or company name
{% if branch %}
{% for mu in master_users %} {{ mu.username }} {% endfor %} {{ branches_in_scope|length }} branches
{% endif %}
{% if branches_in_scope %}
{% csrf_token %}
Global Months to Extend
months
Adds to each branch's current expiry date
Global Status
{{ branches_in_scope|length }}
Total
–
Active
–
Expired
0
Selected
0
Total Amount
{% for b in branches_in_scope %} {% with days_left=b.days_left %} {% endwith %} {% endfor %}
Branch Current Expiry Months Extend
per row
New Expiry Date
or manual override
Payment Mode Amount Received
{{ b.company_name }}
{{ b.branch_name }}
{{ b.status }}
{% if b.expiry_date %} {{ b.expiry_date|date:"d/m/Y" }} {% if days_left is not None %}
{% if days_left < 0 %} Expired {{ days_left|cut:"-" }} days ago {% elif days_left == 0 %} Expires today {% else %} {{ days_left }} days left {% endif %}
{% endif %} {% else %} No expiry set {% endif %}
{% elif branch %}
No master user found for this branch, or no branches linked to its master.
{% else %}
Search a branch above to load all branches of its master user.
{% endif %}
{% endblock %} {% block javascripts %} {{ block.super }} {% endblock %}