{% for order in report_list %} {{ order.order_id }} {{ order.receive_dts|date:"m/d/Y h:i:s A" }} {{ order.drug_number }} {% if fill_using_alt_id %}{{ order.req_alt_drug_number }}{% endif %} {{ order.drug_name }} {{ order.facility_id }} {% if has_extra_1 %}{% if order.extra_col_1 %}{{ order.extra_col_1 }}{% endif %}{% endif %} {% if has_extra_2 %}{% if order.extra_col_2 %}{{ order.extra_col_2 }}{% endif %}{% endif %} {{ order.request_quantity|floatformat:"-2" }} {% if order.request_type != 'RX_USER_REVIEW' %}{{ order.package }}{% endif %} {% if order.request_type != 'RX_USER_REVIEW' %}{{ order.complete }} of {{ order.total }}{% endif %} {% if order.request_type != 'RX_USER_REVIEW' %} {% if order.order_dafe_type != 'L60' and order.order_dafe_type != 'C60' and order.order_dafe_type != 'U60' %}Shelf{% else %}{{ order.order_dafe }}{% endif %}{% endif %} {{ order.queue_status }} {% if pdfrender != 'True' and allow_priority_change %}{% else %} {% for priority in priority_list %}{% if priority.tag == order.request_priority %}{% if priority.description == 'Priority Hold' %}{{ priority.description }}{%else%}{{ priority.description }}{% endif %}{% endif %}{% endfor %}{% endif %} {% if pdfrender != 'True' and allow_priority_change %} {% if order.request_type == 'RX_USER_REVIEW' %}         {% else %} {% if show_cancel|upper == 'TRUE' or order.request_type == 'PREPACK_CAN' or order.request_type == 'PREPACK_DRUG' %} {% endif %} {% if order.request_type == 'PREPACK_CAN' or order.request_type == 'PREPACK_DRUG' %} {% endif %} {% if order.request_type != 'PREPACK_CAN' and order.request_type != 'PREPACK_DRUG' %} {% if show_print_cancel|upper == 'TRUE' %} {% endif %} {% if show_cancel_reprocess %} {% endif %} {% endif %} {% endif %} {% endif %} {% endfor %}