{{ forloop.counter }}. |
{% icon row.device.icon %} {{ row.device.name }}
|
{{ row.device.sn }} |
{{ row.device.barcode }} |
{% if not row.device.deprecation_date %}
N/A
{% endif %}
{{ row.device.deprecation_date|date:"Y-m-d" }}
|
{% if row.deprecated %}
Deprecated ({{ row.total|currency }})
{% elif row.device.cached_price == None %}
N/A
{% else %}
{{ row.device.cached_price|currency }}
{% endif %}
|
{% if row.components %}
Name: |
Count: |
Unit price: |
{% for comp in row.components %}
{% icon comp.icon %} {% if comp.model.name %}{{ comp.model.name }}{% else %}{{ comp.model }}{% endif %}
{% if comp.serial %}
(Serial: {{ comp.serial }})
{% endif %}
|
{{ comp.count }}
{% if comp.disk_count %}
{{ comp.disk_count }}
{% endif %}
|
{% if not comp.price %}
N/A{% if not comp.group %} {% icon "notebook--minus" %}
{% endif %}
{% else %}
{{ comp.price|currency }}
{% endif %}
|
{% endfor %}
{% else %}
N/A
{% endif %}
|
{% endfor %}