{% extends "base.html" %} {% from "_macros.html" import doc_export with context %} {% block title %}{{ r.number }}{% endblock %} {% block content %} {% set draft = r.state == 'draft' and can_write %}
{{ t('Payroll') }}

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

{{ r.period }} · {{ branch.code }} — {{ nm(branch) }}
{{ doc_export() }} {% if r.move_id %}{{ t('Payroll entry') }}{% endif %} {% if r.pay_move_id %}{{ t('Payment entry') }}{% endif %} {{ t('Bank salary file (WPS)') }} {% if draft %}
{% endif %}
{{ t('Gross pay') }}
{{ totals.gross|money(cur) }}
{{ totals.n }} {{ t('employees') }} · {{ cur }}
{{ t('GOSI') }}
{{ (totals.gosi_employee + totals.gosi_employer)|money(cur) }}
{{ t('Employee') }} {{ totals.gosi_employee|money(cur) }} · {{ t('Company') }} {{ totals.gosi_employer|money(cur) }}
{{ t('Net pay to the bank') }}
{{ totals.net|money(cur) }}
{{ t('Loans deducted') }} {{ totals.loan_deduction|money(cur) }}
{{ t('Provisions this month') }}
{{ (totals.eosb_provision + totals.leave_provision)|money(cur) }}
{{ t('End of service') }} {{ totals.eosb_provision|money(cur) }} · {{ t('Vacation') }} {{ totals.leave_provision|money(cur) }}
{% for l in lines %} {% if draft %} {% else %} {% endif %} {% endfor %}
{{ t('Employee') }}{{ t('Days') }}{{ t('Basic') }}{{ t('Housing') }}{{ t('Transport + other') }} {{ t('Overtime hours') }}{{ t('Overtime') }}{{ t('Additions') }}{{ t('Deductions') }}{{ t('Unpaid days') }} {{ t('Gross') }}{{ t('GOSI') }}{{ t('Loan') }}{{ t('Net pay') }}
{{ l.code }} {{ nm(l) }}{% if l.note %}
{{ l.note }}{% endif %}
{{ l.days|round(1) }}{{ l.basic|money(cur) }}{{ l.housing|money(cur) }}{{ (l.transport + l.other)|money(cur) }} {{ l.overtime|money(cur, True) }} {{ l.ot_hours or '' }}{{ l.overtime|money(cur, True) }}{{ l.additions|money(cur, True) }} {{ l.deductions|money(cur, True) }}{{ l.unpaid_days or '' }}{{ l.gross|money(cur) }}{{ l.gosi_employee|money(cur, True) }}{{ l.loan_deduction|money(cur, True) }} {{ l.net|money(cur) }}{{ t('Payslip') }}
{{ t('Total') }}{{ totals.basic|money(cur) }}{{ totals.housing|money(cur) }}{{ (totals.transport + totals.other)|money(cur) }} {{ totals.overtime|money(cur) }}{{ totals.additions|money(cur) }}{{ totals.deductions|money(cur) }}{{ totals.unpaid_deduction|money(cur, True) }} {{ totals.gross|money(cur) }}{{ totals.gosi_employee|money(cur) }}{{ totals.loan_deduction|money(cur) }}{{ totals.net|money(cur) }}
{% if draft %}
{{ t('Recalculating picks up salary changes, new joiners and approved unpaid leave.') }}
{% endif %}
{% if r.state == 'posted' and can_write %}
{{ t('Dr Salaries Payable / Cr Bank for the net pay.') }}
{% endif %}

{{ t('How this payroll is posted') }}

{{ t('Dr Salaries & Wages') }}{{ totals.gross|money(cur) }}{{ t('gross pay, by cost centre') }}
{{ t('Dr GOSI Contributions') }}{{ totals.gosi_employer|money(cur) }}{{ t('company share') }}
  {{ t('Cr GOSI Payable') }}{{ (totals.gosi_employee + totals.gosi_employer)|money(cur) }}{{ t('employee + company share') }}
  {{ t('Cr Employee Loans & Advances') }}{{ totals.loan_deduction|money(cur) }}
  {{ t('Cr Salaries Payable') }}{{ totals.net|money(cur) }}{{ t('net pay') }}
{{ t('Dr End of Service Benefits / Cr End of Service Provision') }}{{ totals.eosb_provision|money(cur) }}{{ t('increase in the obligation this month') }}
{{ t('Dr Vacation Pay / Cr Vacation Pay Provision') }}{{ totals.leave_provision|money(cur) }}{{ t('change in unused leave') }}
{% endblock %}