{% extends "base.html" %} {% from "_macros.html" import doc_export with context %} {% block title %}{{ t('Payslip') }} {{ ln.code }} {{ r.period }}{% endblock %} {% block content %}
{{ r.number }}

{{ t('Payslip') }}

{{ doc_export() }}

{{ nm(company) }}

{{ nm(branch) }}
{{ t('Payslip') }} — {{ r.period }}
{{ r.number }}
{{ t('Employee') }}
{{ ln.code }} {{ nm(ln) }}
{{ t('Job title') }}
{{ ln.job_title or '—' }}
{{ t('ID / Iqama') }}
{{ ln.id_number or '—' }}
{{ t('Bank') }}
{{ ln.bank_name or '' }} {{ ln.iban or '' }}
{{ t('Days paid') }}
{{ ln.days|round(1) }} / 30
{% if ln.transport %}{% endif %} {% if ln.other %}{% endif %} {% if ln.overtime %}{% endif %} {% if ln.additions %}{% endif %}
{{ t('Earnings') }}{{ cur }}
{{ t('Basic salary') }}{{ ln.basic|money(cur) }}
{{ t('Housing allowance') }}{{ ln.housing|money(cur) }}
{{ t('Transport allowance') }}{{ ln.transport|money(cur) }}
{{ t('Other allowances') }}{{ ln.other|money(cur) }}
{{ t('Overtime') }} ({{ ln.ot_hours }} h){{ ln.overtime|money(cur) }}
{{ t('Additions') }}{{ ln.additions|money(cur) }}
{{ t('Total earnings') }}{{ (ln.basic + ln.housing + ln.transport + ln.other + ln.overtime + ln.additions)|money(cur) }}
{% if ln.unpaid_deduction %}{% endif %} {% if ln.deductions %}{% endif %} {% if ln.loan_deduction %}{% endif %}
{{ t('Deductions') }}{{ cur }}
{{ t('Unpaid leave') }} ({{ ln.unpaid_days }} {{ t('days') }}){{ ln.unpaid_deduction|money(cur) }}
{{ t('Other deductions') }}{{ ln.deductions|money(cur) }}
{{ t('GOSI (employee share)') }}{{ ln.gosi_employee|money(cur) }}
{{ t('Loan instalment') }}{{ ln.loan_deduction|money(cur) }}
{{ t('Total deductions') }}{{ (ln.unpaid_deduction + ln.deductions + ln.gosi_employee + ln.loan_deduction)|money(cur) }}
{{ t('Net pay') }}{{ ln.net|money(cur) }} {{ cur }}
{% if ln.note %}

{{ ln.note }}

{% endif %}
{% endblock %}