{% for itm in report_list %} {% if itm.header %}
| {% if itm.subgroup == 'SUBTOTAL' %}{{ itm.subgroup }}{% else %}{{ itm.drug_number }}{% endif %} | {% if itm.subgroup != 'SUBTOTAL' %}{{ itm.drug_name }}{% endif %} | {% if show_drug_location %}{% if itm.subgroup != 'SUBTOTAL' %}{% if itm.serial_number != 0 %}{{ itm.serial_number }}{% endif %}{% endif %} | {% if itm.subgroup != 'SUBTOTAL' %}{% if itm.location != 0 %}{{ itm.location }} ({{ itm.dafe }}){% endif %}{% endif %} | {% endif %}{{ itm.new_demand_card_count }} | {{ itm.refill_demand_card_count }} | {{ itm.new_cycle_card_count }} | {{ itm.refill_cycle_card_count }} | {{ itm.prepack_card_count }} | {% if show_prepack_printed %}{{ itm.prepack_print_count }} | {% endif %}{{ itm.attempt_count }} | {{ itm.card_count }} | {{ itm.pill_count|floatformat }} | {{ itm.print_count }} ({{ itm.bypass_pct|floatformat:"-2" }}%) | {{ itm.cancel_count }} ({{ itm.cancel_pct|floatformat:"-2" }}%) | {{ itm.ran_empty_count }} ({{ itm.ran_empty_pct|floatformat:"-2" }}%) | {% if show_fill_warning %}{{ itm.warn_count }} ({{ itm.warn_pct|floatformat:"-2" }}%) | {% endif %}{{ itm.error_count }} | {{ itm.error_pct|floatformat:"-2" }}% | {{ itm.undetected_count }} | {{ itm.undetected_pct|floatformat:"-2" }}% | ${{ itm.total_cost|floatformat:"-2" }} |