{% set d = extension.compute() %} {% macro render_node(node) %} {% if node.children %}
  • {{ node.name }} {{ node.counts.total }} {% if node.counts.needs_review %} {{ node.counts.needs_review }} {% endif %}
  • {% else %}
  • {% endif %} {% endmacro %}

    截至 {{ d.today }}

    Account Maintenance

    從帳戶樹查看生命週期、餘額核對、歷史起點、Pad 與 buffer 狀況。

    {{ d.summary.open }} 開啟 {{ d.summary.closed }} 關閉 {{ d.summary.needs_review }} 需查看 {{ d.summary.backfill }} 可回溯 {% if d.summary.future %}{{ d.summary.future }} 未來{% endif %}

    Balance Freshness

    下一個該核對的帳戶

    從未核對與缺漏幣別優先,其次是逾期天數最多;尚未逾期則按最接近期限排列。

    {{ d.summary.balance_due }} 待更新 / {{ d.summary.balance_tracked }} 個有設定週期
    {% if d.balance_queue %}
    {% for r in d.balance_queue %} {% endfor %}
    Account 週期 各幣別最後 Balance 已過 狀態
    {{ r.frequency }} 天 {% if r.units %}
    {% for unit in r.units %} {{ unit.currency }} {% if unit.date %} {{ unit.date }} {% else %} 尚未核對 {% endif %} {% endfor %}
    {% else %} 尚未有可判定的幣別 {% endif %}
    {{ r.days_since if r.days_since is not none else '—' }} {% if r.days_since is not none %}天{% endif %} {% if r.status == 'never' %} 從未核對 {% elif r.status == 'partial' %} 缺少 {{ r.missing_units|join('、') }} {% elif r.status == 'overdue' %} 逾期 {{ r.delta }} 天 {% elif r.delta == 0 %} 今天到期 {% else %} {{ 0 - r.delta }} 天後到期 {% endif %} {% if r.status_ratio is not none %} {{ '%.1f'|format(r.status_ratio) }}× 週期 {% endif %}
    {% else %}

    目前沒有設定有效 balance_frequency 的開啟帳戶。

    {% endif %} {% if d.missing_guidance %}
    未設定核對週期 {{ d.summary.balance_missing_frequency }}

    以下開啟中的 Assets/Liabilities 帳戶沒有有效的 balance_frequency,因此不會進入上方排序。

    {% for r in d.missing_guidance %} {% endfor %}
    Account 最後 Balance 已過 設定
    {{ r.last_balance or '—' }} {{ r.days_since if r.days_since is not none else '—' }} {% if r.days_since is not none %}天{% endif %} {% if r.invalid %} 設定無效 {% else %} 未設定 {% endif %}
    {% endif %}