작업 상태 확인 전
{% if wehago_compare.last_action %}
최근 작업: {{ wehago_compare.last_action.action_type }} / {{ "{:,}".format(wehago_compare.last_action.count or 0) }}건
{% else %}
최근 작업: 없음
{% endif %}
기간 {{ wehago_compare.selected_start_year or '-' }} ~ {{ wehago_compare.selected_end_year or '-' }}
{% set final_summary = wehago_compare.wehago_final_status_summary or {} %}
{% set final_diag = final_summary.diagnostics or {} %}
WEHAGO 전표 단위 기준:
{{ "{:,}".format(final_diag.wehago_status_total or final_summary.classified_total or 0) }}건 /
원천 {{ "{:,}".format(final_diag.wehago_voucher_total or final_summary.raw_total or 0) }}건 /
차이 {{ "{:,}".format(final_diag.wehago_status_difference or final_summary.difference or 0) }}건 /
{{ final_summary.source or 'projection' }}
{% for section in wehago_compare.metric_sections %}
{% if section.key in ['voucher_matched', 'voucher_unmatched', 'voucher_recheck', 'voucher_excepted', 'hanmac_unconnected', 'erp_voucher_matched', 'erp_voucher_unmatched'] %}
{% endif %}
{% endfor %}
{% for section in wehago_compare.metric_sections %}
{% if section.key in ['voucher_matched', 'voucher_unmatched', 'voucher_recheck', 'voucher_excepted', 'hanmac_unconnected', 'erp_voucher_matched', 'erp_voucher_unmatched'] %}
{% set show_export_button = section.key in ['voucher_matched', 'voucher_unmatched', 'voucher_recheck', 'voucher_excepted', 'hanmac_unconnected', 'erp_voucher_matched', 'erp_voucher_unmatched'] %}
{% if section.key == 'matched' or show_export_button %}
{{ section.label }}
{% if section.key == 'matched' %}
{% endif %}
{% if show_export_button %}
{% endif %}