{% extends "base.html" %} {% from "_macros.html" import doc_export with context %} {% block title %}{{ s.number }}{% endblock %} {% block content %} {% set r = s %}
{{ t('Final Settlements') }}

{{ s.number }} {% include "hr/_run_badge.html" %}

{{ s.code }} {{ nm(s) }} · {{ t(reasons[s.reason]) }} · {{ t(laws[s.law]) }}
{{ doc_export() }} {% if s.move_id %}{{ t('Settlement entry') }}{% endif %} {% if s.pay_move_id %}{{ t('Payment entry') }}{% endif %} {% if can_write and s.state == 'draft' %}
{% endif %}
{{ t('Joining date') }}
{{ s.join_date }}
{{ t('Last working day') }}
{{ s.leave_date }}
{{ t('Service') }}
{{ '%.2f'|format(s.years) }} {{ t('years') }}
{{ t('Wage used') }}
{{ s.wage|money(cur) }} {{ cur }}
{% if s.additions %}{% endif %} {% if s.deductions %}{% endif %} {% if s.loan_balance %}{% endif %}
{{ t('End-of-service benefit (full)') }}{{ s.eosb_full|money(cur) }}
{{ t('End-of-service benefit due') }}{% if s.eosb_due != s.eosb_full %} ({{ t(reasons[s.reason]) }}){% endif %}{{ s.eosb_due|money(cur) }}
{{ t('Unused leave') }} ({{ '%.1f'|format(s.leave_days) }} {{ t('days') }}){{ s.leave_pay|money(cur) }}
{{ t('Other additions') }}{{ s.additions|money(cur) }}
{{ t('Other deductions') }}−{{ s.deductions|money(cur) }}
{{ t('Loan balance recovered') }}−{{ s.loan_balance|money(cur) }}
{{ t('Net payable to the employee') }}{{ s.net|money(cur) }} {{ cur }}
{% if s.state == 'draft' %}

{{ t('The entry when posted') }}

{{ t('Dr End of Service Provision') }}{{ e.eosb_booked|money(cur) }}{{ t('provision built up so far') }}
{{ t('Dr / Cr End of Service Benefits') }}{{ (s.eosb_due - e.eosb_booked)|money(cur) }}{{ t('difference to the amount due (negative = release)') }}
{{ t('Dr Vacation Pay Provision') }}{{ e.leave_booked|money(cur) }}
{{ t('Dr / Cr Vacation Pay') }}{{ (s.leave_pay - e.leave_booked)|money(cur) }}
  {{ t('Cr Employee Loans & Advances') }}{{ s.loan_balance|money(cur) }}
  {{ t('Cr Salaries Payable') }}{{ s.net|money(cur) }}{{ t('net payable') }}
{% endif %}
{% if s.state == 'posted' and can_write %}
{% endif %} {% endblock %}