{% extends 'root/base.html' %} {% load static %} {% block title %} Documents Report (Admin Tool) {% endblock %} {% block maincontent %} {% include 'root/loader.html' %}

Documents Report


{% csrf_token %} {% if error_messages %} {% endif %}
{{ sform.doc_type }}
{{ sform.company_code }}
{{ sform.from_date }}
{{ sform.to_date }}
{{ sform.doc_num }}
{{ sform.created_by }}
{{ sform.requester }}

{% if t_count > 0 %}
Total number of results found: {{ t_count }}
{% endif %} {% if t_count == 0 %}
No Results Found
{% endif %}
{% if t_count > 0 %}
{% if inp_doc_type == 'SC' or inp_doc_type == 'PO' %} {% if inp_doc_type == 'SC' %} {% endif %} {% if inp_doc_type == 'PO' %} {% endif %} {% endif %} {% for items, encrypted_header_guid in results %} {% if items.status != 'SAVED' %} {% if inp_doc_type == 'SC' or inp_doc_type == 'PO' %} {% if inp_doc_type == 'SC' %} {% endif %} {% if inp_doc_type == 'PO' %} {% endif %} {% if inp_doc_type == 'SC' %} {% endif %} {% if inp_doc_type == 'PO' %} {% endif %} {% endif %} {% endif %} {% endfor %}
SC Number SC NamePO Number PO NameStatus Total Value Currency Requested By Created By Created At Ordered At
{{ items.doc_number|default:"N/A" }} {{ items.doc_number|default:"N/A" }} {{ items.description|default:"N/A" }} {% if items.status == 'AWAITING_APPROVAL' %} WAITING FOR APPROVAL {% elif items.status == 'SAVED' %} SAVED {% elif items.status == 'APPROVED' %} APPROVED {% elif items.status == 'PURCHASER_WORKLIST' %} IN PURCHASER's WORK LIST {% elif items.status == 'REJECTED' %} REJECTED {% else %} Ordered {% endif %} {{ items.total_value|default:"N/A" }} {{ items.currency|default:"N/A" }} {{ items.requester|default:"N/A" }}{{ items.created_by|default:"N/A" }} {{ items.created_at|default:"N/A" }}{{ items.po_header_created_by|default:"N/A" }} {{ items.po_header_created_at|default:"N/A" }} {% if items.ordered_at %} {{ items.ordered_at|date:"F d, Y, P" }} {% else %} N/A {% endif %}
{% endif %}
 
{% if inc_footer %} {% include 'root/footer.html' %} {% endif %} {% endblock %}