{% extends "base.html" %} {% block title %}{{ ln.number or t('New loan') }}{% endblock %} {% block content %} {% set l = ln %}{% set cur = branches[ln.branch_id].currency if ln.branch_id and ln.branch_id in branches else none %}
{{ t('Loans & Advances') }}

{{ ln.number or t('New loan') }} {% if ln.number %}{% include "hr/_loan_badge.html" %}{% endif %}

{{ t('Paying the loan: Dr Employee Loans & Advances / Cr Bank. Each month the instalment is deducted in the payroll: Cr Employee Loans & Advances.') }}
{% if ln.move_id %}
{{ t('Journal entry') }}
{% endif %}
{% if ln.state != 'draft' %}
{{ t('Amount') }}
{{ ln.amount|money(cur) }}
{{ ln.code }} {{ nm(ln) }}
{{ t('Repaid') }}
{{ repaid|money(cur) }}
{{ ln.installment|money(cur) }} {{ t('a month from') }} {{ ln.start_period }}
{{ t('Balance') }}
{{ (ln.amount - repaid)|money(cur) }}
{{ cur }}
{% else %}
{% if ln.id %}{% endif %}
{{ t('Used when you pay the loan out.') }}
{% if can_write %}
{{ t('Cancel') }}
{% endif %}
{% if ln.id and can_write %}
{% endif %} {% endif %} {% endblock %}