{% extends "base.html" %} {% from "_macros.html" import branch_tag with context %} {% block title %}{{ t('Loans & Advances') }}{% endblock %} {% block content %}

{{ t('Loans & Advances') }}

{% if can_write %}
+ {{ t('New loan') }}
{% endif %}
{% for l in rows %}{% set cur = branches[l.branch_id].currency if l.branch_id in branches else none %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Employee') }}{{ t('Branch') }}{{ t('Date') }}{{ t('Amount') }}{{ t('Monthly instalment') }}{{ t('First deduction') }}{{ t('Balance') }}{{ t('Status') }}
{{ l.number }}{{ l.code }} {{ nm(l) }}{{ branch_tag(branches, l.branch_id) }} {{ l.date }}{{ l.amount|money(cur) }}{{ l.installment|money(cur) }}{{ l.start_period }} {{ l.balance|money(cur) if l.state != 'draft' else '' }}{% include "hr/_loan_badge.html" %}
{{ t('Nothing yet.') }}
{% endblock %}