{% extends 'transactions/extends/layout.html' %} {% load static %} {% load humanize %} {% block content %} {% block styles %} {% endblock %} {% block scripts %} {% endblock %}

{{ asset.name|capfirst }} ({{ asset.asset_number }}) Transaction History. Current location: {% if last.is_disposal %} Disposed Off {% else %} {{ last.location_to.name|capfirst }} {% endif %}

{% for f in details %} {% endfor %}
Date Action From To Purchase Price Depreciation Price Disposal Price Condition Description
{{ f.date }} {% if f.is_purchase %} Asset Purchase {% elif f.is_transfer %} Asset Transfer {% elif f.is_update %} Asset Update {% elif f.is_disposal %} Asset Disposal {% elif f.is_depreciation %} Asset Depreciation {% endif %} {% if f.is_purchase %} {{ f.asset.supplier.name }} (supplier) {% elif f.is_update %} {{ f.location_from.name }} {% else %} {{ f.location_from.name }} {% endif %} {% if f.is_disposal %} {{ f.buyer.name }} (buyer) {% elif f.is_update %} {{ f.location_from.name }} {% else %} {{ f.location_to.name }} {% endif %} {% if f.is_purchase %} {{ f.asset.purchase_price|intcomma }} {% endif %} {% if f.is_depreciation %} {{ f.gl.reporting_amount|intcomma }} {% endif %} {% if f.is_disposal %} {{ f.sale_price|intcomma }} {% endif %} {{ f.condition }} {{ f.description }}
{% endblock %} {% block javascript %} {% endblock %}