{% extends "base.html" %} {% block title %}勤務統計 - SDU-Shift{% endblock %} {% block head %} {% endblock %} {% block content %}
集計対象期間(複数選択可)
{% for p in all_periods %} {% endfor %}
{% if sel_periods %}
{{ sel_periods|length }}期間 / 合計{{ sel_periods|map(attribute='start_date')|list|length }}〜 選択中
{% endif %}
{% if not sel_ids %}
期間を選択してください。
{% else %} {% if any_wage %}
{% set total_cost = namespace(v=0.0) %} {% for emp in employees %} {% set d = stats_data.get(emp.id, {}) %} {% set cost = d.get('cost', 0.0) %} {% set total_cost.v = total_cost.v + cost %} {% endfor %}
名前 推計人件費
{{ emp.name }} {% if emp.employment_type.value == 'full_time' %} 対象外 {% elif cost > 0 %} ¥{{ "{:,.0f}".format(cost) }} {% elif emp.hourly_wage == 0 %} 時給未設定 {% else %}—{% endif %}
合計 ¥{{ "{:,.0f}".format(total_cost.v) }}
{% endif %}
法定労働時間チェック(週{{ weekly_limit|int }}時間)
{% if overtime_alerts %}
{% for a in overtime_alerts %} {% endfor %}
名前週推計時間
{{ a.name }} {{ a.week_label }} {{ "%.1f"|format(a.hours) }}h

※ 週40時間を超えた場合、36協定の締結・届出が必要です。推計値のため実際の勤怠と照合してください。

{% else %}

選択期間内に週40時間超えはありません。

{% endif %}
{% if any_wage %}
客数あたり人件費
{% if cost_per_customer is not none %}
¥{{ "{:,.0f}".format(cost_per_customer) }} / 来客1人あたり
合計人件費 ¥{{ "{:,.0f}".format(total_labor_cost) }} ÷ 来客数 {{ "{:,}".format(customer_counts.total) }}人 (朝食 {{ "{:,}".format(customer_counts.breakfast) }} / ディナー {{ "{:,}".format(customer_counts.dinner) }})

※ 選択期間の合計人件費を、同期間の来客数(「客数管理」で入力した予約客数)で割った概算値です。 前期間と比べて高ければ、忙しさに対して人員を厚く配置しすぎている可能性があります。

{% else %}

来客数が未入力のため算出できません。「客数管理」画面で予約客数を入力してください。

{% endif %}
{% endif %}
シフトの公平性
{% for emp in employees %} {% set f = fairness_stats.get(emp.id, {}) %} {% endfor %}
名前 希望採用率 最大連続勤務 総休日数
{{ emp.name }} {% if f.fulfillment_rate is not none %} {{ "%.0f"|format(f.fulfillment_rate * 100) }}% ({{ f.req_matched }}/{{ f.req_total }}) {% else %} — {% endif %} {{ f.max_consecutive }}日 {% if f.max_consecutive > max_consecutive_setting %} {% endif %} {{ f.days_off }} / {{ f.total_days }}日

※ 希望採用率=休み希望・出勤希望(朝食/ディナー)が実際の割当と一致した割合。希望未提出の方は「—」。
※ 最大連続勤務日数が設定値({{ max_consecutive_setting }}日)を超える場合は警告表示しています。

人員不足の発生頻度
{% if shortage_summary and shortage_summary[0].total_days > 0 %} {% for s in shortage_summary %}
{{ s.slot }}・{{ s.pos }} 人員不足 {{ s.short_staff_days }}/{{ s.total_days }}日 {% if s.short_leader_days > 0 %} / うちリーダー不足 {{ s.short_leader_days }}日 {% endif %}
{% endfor %}

※ 選択期間(合計{{ shortage_summary[0].total_days }}日)のうち、各区分で必要人数を満たせなかった日数の割合です。多い区分から順に表示しています。

{% else %}

対象期間がありません。

{% endif %}
{% if any_wage %}
スタッフ別推計人件費
{% endif %}

※ 人件費は(基本給+個人昇給額)×時間(朝食は早朝手当加算)の概算です。休憩・交通費等は含みません。
※ 基本給・早朝手当・昇給額は設定画面の「人件費設定」で変更できます。

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}