{% extends 'root/base.html' %} {% load static %} {% block title %} My Orders (Shop) {% endblock %} {% block maincontent %}
|
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' %}
{% if inp_doc_type == 'DOC01' %}
Shopping Cart Number
{{ sc_head.doc_number }}
{% endif %}
{% if inp_doc_type == 'DOC02' %}
Purchase Order Number {{ sc_head.doc_number }}
{% endif %}
Requested By {{ requester_first_name }}
{% 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' %}
|