{% extends base_template %} {% load i18n %} {% block title %}{{ loan.reference }}{% endblock %} {% block content %}
{{ loan.borrower.get_full_name|default:loan.borrower.username }} · {% trans "issued" %} {{ loan.issued_at|date:"M j, Y" }} {% if loan.request %} · {{ loan.request.reference }}{% endif %}
{% trans "Scan this code at the loan desk to open the return workflow." %}
{{ request.scheme }}://{{ request.get_host }}{% url 'plugin:loan:loan_detail' loan.pk %}
{% trans "Extend the due date for this borrower." %}
{% blocktrans count counter=loan.item_count %}{{ counter }} line{% plural %}{{ counter }} lines{% endblocktrans %}
| {% trans "Part" %} | {% trans "Asset" %} | {% trans "Qty" %} | {% trans "Returned" %} | {% trans "Remaining" %} | {% trans "Status" %} | {% if is_desk %}{% trans "Actions" %} | {% endif %}
|---|---|---|---|---|---|---|
| {{ item.part.name }}{% if item.part.IPN %} {{ item.part.IPN }} {% endif %} |
{{ item.stock_item_display }} | {{ item.quantity|floatformat:"-5" }} | {{ item.returned_quantity|floatformat:"-5" }} | {{ item.remaining_quantity|floatformat:"-5" }} |
{% if item.lost %}
{% trans "Lost" %}
{% elif item.is_returned %}
{% trans "Returned" %}
{% else %}
{% trans "On loan" %}
{% endif %}
{% if item.condition_on_return %} {{ item.get_condition_on_return_display }} {% endif %}
|
{% if is_desk %}
{% if item.is_open %} {% trans "Return" %} {% endif %} | {% endif %}
{% trans "No events yet." %}
{% endif %}