{% extends 'root/base.html' %} {% load static %} {% block title %} My Orders (Shop) {% endblock %} {% block maincontent %}

My Documents

{% csrf_token %} {{ sform.non_field_errors }}
{{ sform.doc_type }}
{{ sform.doc_num }}
{{ sform.time_frame }}
{{ sform.SCName }}
{% if forloop.counter == 3 %} {% else %}
{% endif %}
{% if t_count > 0 %}
Total number of results found {{t_count}}
{% elif t_count == 0 %}
Total number of results found {{t_count}}
{% endif %}
{% if t_count > 0 %}
{% for sc_head, encrypted_guid in doc_header_details %} {% endfor %}
Document Number
Document Name
Created On
Total Value
Document Status
{% if inp_doc_type == 'DOC01' %} {{ sc_head.doc_number }} {% else %} {{ sc_head.doc_number }} {% endif %}
{% if inp_doc_type == 'DOC01' %} {{ sc_head.description }} {% else %} {{ sc_head.description }} {% endif %}
{{ sc_head.created_at }}
{{ sc_head.total_value }} {{ sc_head.currency }}
{% for doc_approver_detail in doc_approver_details %} {% if doc_approver_detail.header_guid_id in sc_head.guid and doc_approver_detail.step_num == '1' %} {% if doc_approver_detail.app_id != 'Auto' %} {% if sc_head.status == 'AWAITING_APPROVAL'%} WAITING FOR APPROVAL {% elif sc_head.status == 'SAVED' %} SAVED {% elif sc_head.status == 'APPROVED' %} APPROVED {% elif sc_head.status == 'ORDERED' %} ORDERED {% elif sc_head.status == 'PURCHASER_WORKLIST' %} IN PURCHASER's WORK LIST {% elif sc_head.status == 'DELETED' %} DELETED {% elif sc_head.status == 'REJECTED' %} REJECTED {% endif %} {% elif doc_approver_detail.app_id == 'Auto' %} {% if sc_head.status == 'PURCHASER_WORKLIST' %} IN PURCHASER's WORK LIST {% elif sc_head.status == 'SAVED' %} SAVED {% elif sc_head.status == 'AWAITING_APPROVAL' %} WAITING FOR APPROVAL {% elif sc_head.status == 'DELETED' %} DELETED {% else %} APPROVED {% endif %} {% endif %} {% endif %} {% endfor %}
{% if inp_doc_type == 'DOC01' %}
{% endif %}
{% if inp_doc_type == 'DOC01' %} Shopping Cart Number
{% endif %} {% if inp_doc_type == 'DOC02' %} Purchase Order Number
{% endif %} Requested By
{% if inp_doc_type == 'DOC02' %} {% if sc_head.document_details %} Shopping Cart Number
{% for document_detail in sc_head.document_details %} {{ document_detail.document_number }}
{% endfor %} {% endif %} {% endif %} {% if inp_doc_type == 'DOC01' %} {% if sc_head.document_details %} Purchase Order Number
{% for document_detail in sc_head.document_details %} {{ document_detail.document_number }} {% endfor %} {% endif %} {% endif %}
{% include 'Workflow/manager_detail.html' %}
{% endif %}
{% include 'Workflow/manager_detail_modal.html' %} {% endblock %}