{% extends "base.html" %} {% from "units/_m.html" import unit_badge, doc_badge with context %} {% block title %}{{ t('Rental Contracts') }}{% endblock %} {% block content %}

{{ t('Rental Contracts') }}

{{ t('Portable units hired out from the rental fleet, billed monthly.') }}

{% if can_write %}
+ {{ t('New rental contract') }}
{% endif %}
{{ t('Fleet') }}
{{ util.total }}
{{ t('units owned for rent') }}
{{ t('On rent') }}
{{ util.on_rent }}
{{ util.available }} {{ t('available') }}
{{ t('Utilisation') }}
{{ '%.0f' % util.pct }}%
{{ t('Monthly rent') }}
{{ util.monthly|money }}{{ company.currency }}
{{ t('units on hire now') }}
{% for r in rows %} {% else %}{% endfor %}
{{ t('Contract') }}{{ t('Customer') }}{{ t('Project') }} / {{ t('Site') }}{{ t('From') }}{{ t('Invoiced to') }}{{ t('Units on hire') }}{{ t('Monthly rent') }}{{ t('Status') }}
{{ r.number }}{{ nm({'name_en': r.cust_en, 'name_ar': r.cust_ar}) }} {{ r.pcode or '' }}{% if r.site %}
{{ r.site }}{% endif %}
{{ r.start_date }}{{ r.billed_until or '—' }} {{ r.n_on }}{{ r.monthly|money }}{{ doc_badge(r.state) }}
{{ t('No rental contracts yet.') }}

{{ t('Rental fleet') }}

{% for u in fleet %} {% else %}{% endfor %}
{{ t('Serial') }}{{ t('Product') }}{{ t('Customer') }} / {{ t('Site') }}{{ t('Cost') }}{{ t('Status') }}
{{ u.serial }}{{ nm(u) }}{{ u.cust_en if u.state == 'on_rent' else '—' }}{% if u.site %}
{{ u.site }}{% endif %}
{{ u.cost|money }}{{ unit_badge(u.state) }}
{{ t('No units in the rental fleet. Move finished units to the fleet from the Units list.') }}
{% endblock %}