{# custom report header needed due to ajax #} {% for head in report_header %} {% if current_sort == head.db_column %} {% if head.allow_sort %} {% else %} {% if head.allow_sort %} {% endif %} {% endfor %} {% for can in canisters.canisters %} {% endfor %}
Canisters Needing Attention
{% else %}{% endif %}{{ head.display }}{% if head.allow_sort %} {% if current_sort == head.db_column %}{% elif current_sort == '-'|add:head.db_column %}{% endif %}{% endif %}{% else %}{% endif %}{{ head.display }}{% if head.allow_sort %} {% if current_sort == head.db_column %}{% elif current_sort == '-'|add:head.db_column %}{% endif %}{% endif %}
{{ can.serial_number }} {% if show_dashboard_NDC11 %} {% if can.instance__authority__authority_type == 'NDC' and show_ndc_dashes == True %} {% if can.instance__authority__drug_number|length == 11 %} {{ can.instance__authority__drug_number|slice:"0:5" }}-{{ can.instance__authority__drug_number|slice:"5:9" }}-{{ can.instance__authority__drug_number|slice:"9:11" }} {% else %} {{ can.instance__authority__drug_number|slice:"0:5" }}-{{ can.instance__authority__drug_number|slice:"5:9" }}-{{ can.replenishments__packaging__pack_code }} {% endif %} {% else %} {% if can.instance__authority__drug_number|length == 11 %} {{ can.instance__authority__drug_number }} {% else %} {{ can.instance__authority__drug_number }}{{ can.replenishments__packaging__pack_code }} {% endif %} {% endif %} {% else %} {% if can.instance__authority__authority_type == 'NDC' and show_ndc_dashes == True %} {{ can.instance__authority__drug_number|slice:"0:5" }}-{{ can.instance__authority__drug_number|slice:"5:9" }}-XX {% else %} {{ can.instance__authority__drug_number }} {% endif %} {% endif %} {{ can.instance__authority__pharmaceutical__drug_name__label_name }} {{ can.instance__authority__pharmaceutical__strength__label_name }} {{ can.instance__authority__pharmaceutical__unit__label_name }} {{ can.instance__authority__pharmaceutical__form__label_name }} {% if not can.map__dafe__display_name %}Shelf{% else %}{{ can.map__dafe__display_name }} ({{ can.map__canister_position__tag }}){% endif %} {{ can.display_status__description }} {% if can.next_cutoff %}{{ can.next_cutoff|date:"m/d/Y h:i:s A" }}{% endif %} {{ can.quantity }} {{ can.pill_demand }}