{% extends "base.html" %} {% block content %}

Asset Approvals

Pending Return Requests
{% if pending_returns %} {% for a in pending_returns %} {% set qty = a.quantity or 1 %} {% set total = a.asset.quantity_total or 1 %} {% set avail = a.asset.quantity_available if a.asset.quantity_available is not none else total %} {% endfor %} {% else %} {% endif %}
Asset Employee Allocated On Return Date Qty Remarks Actions
{{ a.asset.asset_tag }} - {{ a.asset.name }}
Stock: {{ total }}/{{ avail }}
{{ a.employee.employee_code }} - {{ a.employee.full_name }} {{ a.allocated_on.strftime('%d-%m-%Y') if a.allocated_on else '-' }} {{ a.actual_return_date.strftime('%d-%m-%Y') if a.actual_return_date else '-' }} {{ qty }} {{ a.condition_on_return or '-' }}
No pending return requests.
Pending Loss / Damage Reports
{% if pending_ld %} {% for r in pending_ld %} {% endfor %} {% else %} {% endif %}
Asset Employee Type Incident Date Estimated Amount Description Actions
{{ r.asset.asset_tag }} - {{ r.asset.name }} {{ r.employee.employee_code }} - {{ r.employee.full_name }} {{ r.incident_type }} {{ r.incident_date.strftime('%d-%m-%Y') if r.incident_date else '-' }} {% if r.estimated_amount is not none %} {{ '%.2f'|format(r.estimated_amount) }} {% else %} - {% endif %} {{ r.description or '-' }}
No pending loss or damage reports.
{% endblock %}