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

Asset Loss / Damage

Approvals
{{ csrf_token() if csrf_token is defined }}
Note: If an asset has a pending loss/damage report, it is blocked for new allocations.
{% if records %} {% for r in records %} {% set total = r.asset.quantity_total or 1 if r.asset else 1 %} {% set avail = (r.asset.quantity_available if (r.asset and r.asset.quantity_available is not none) else total) %} {% endfor %} {% else %} {% endif %}
Asset Type Incident Date Reported By Est. Amount Status Description
{% if r.asset %}
{{ r.asset.asset_tag }} - {{ r.asset.name }}
Stock: {{ total }}/{{ avail }}
{% else %} - {% endif %}
{{ (r.incident_type or '-') }} {{ r.incident_date.strftime('%d-%m-%Y') if r.incident_date else '-' }} {% if r.employee %} {{ r.employee.employee_code }} - {{ r.employee.full_name }} {% else %} - {% endif %} {% if r.estimated_amount is not none %} {{ '%.2f'|format(r.estimated_amount) }} {% else %} - {% endif %} {{ (r.status or 'pending')|replace('_',' ')|title }} {{ r.description or '-' }}
No loss/damage records.
{% endblock %}