{% set onsite_alert_count = onsite_dashboard_alert_count or 0 %} {% set onsite_alert_badge = '99+' if onsite_alert_count > 99 else onsite_alert_count %} {% set onsite_alert_label = onsite_dashboard_alert_label or 'onsite call' %}
| Service Location | {% for status_name in status_columns %}{{ status_name }} | {% endfor %}Total |
|---|---|---|
| {{ row.branch_name }} | {% for status_name in status_columns %} {% set value = row.counts[status_name] %}{% if value > 0 %} {{ value }} {% else %} - {% endif %} | {% endfor %}{% if row.total > 0 %} {{ row.total }} {% else %} 0 {% endif %} |
| Total | {% for status_name in status_columns %} {% set t = branch_wise_totals[status_name] %}{% if t > 0 %} {% if selected_jobs_branch %} {{ t }} {% else %} {{ t }} {% endif %} {% else %} 0 {% endif %} | {% endfor %}{% if selected_jobs_branch %} {{ branch_wise_grand_total }} {% else %} {{ branch_wise_grand_total }} {% endif %} |
| {{ status_name }} | {% endfor %}Total |
|---|---|
| {% if value > 0 %} {{ value }} {% else %} - {% endif %} | {% endfor %}{{ branch_report_total }} |
| Job Card Status | {% for bucket in age_buckets %}{{ bucket }} Days | {% endfor %}Total |
|---|---|---|
| {{ row.status }} | {% for bucket in age_buckets %} {% set value = row.counts[bucket] %}{% if value > 0 %} {% if selected_jobs_branch %} {{ value }} {% else %} {{ value }} {% endif %} {% else %} - {% endif %} | {% endfor %}{% if row.total > 0 %} {% if selected_jobs_branch %} {{ row.total }} {% else %} {{ row.total }} {% endif %} {% else %} 0 {% endif %} |
| Total | {% for bucket in age_buckets %} {% set t = ageing_totals_by_bucket[bucket] %}{% if t > 0 %} {% if selected_jobs_branch %} {{ t }} {% else %} {{ t }} {% endif %} {% else %} 0 {% endif %} | {% endfor %}{% if selected_jobs_branch %} {{ ageing_grand_total }} {% else %} {{ ageing_grand_total }} {% endif %} |