{% extends 'base.html' %} {% block content %}

Employee Payments

Process Payment

{% if not employees %}
⚠️
No Employees Available
You need to add employees first before you can process payments.
👥 Go to Employees ➕ Add First Employee
{% endif %}
{{ form.hidden_tag() }}
{% if employees %} {{ form.employee_id() }} {% else %} {% endif %}
{{ form.date(type='date') }}
{{ form.payment_type() }}
{{ form.amount(step='0.01', placeholder='0.00') }}
{{ form.account_id() }}
{{ form.description(placeholder='Payment description...') }}
{{ form.submit(class_='btn-primary') }}

Payment History

{% if payments %}
{% for payment in payments %} {% endfor %}
ID Employee Date Type Amount Account Description Status
#{{ payment.id }} {{ payment.employee.full_name }}
{{ payment.employee.employee_id }}
{{ payment.date|date_format }} {% if payment.payment_type == 'salary' %} 💰 Salary {% elif payment.payment_type == 'bonus' %} 🎁 Bonus {% elif payment.payment_type == 'advance' %} 💳 Advance {% elif payment.payment_type == 'expense_reimbursement' %} 📄 Reimbursement {% else %} {{ payment.payment_type|title }} {% endif %} {{ payment.amount|currency }} {{ payment.account.name }} {% if payment.description %} {{ payment.description[:50] }}{% if payment.description|length > 50 %}...{% endif %} {% else %} - {% endif %} {% if payment.status == 'paid' %} ✅ Paid {% elif payment.status == 'pending' %} ⏳ Pending {% else %} ❌ {{ payment.status|title }} {% endif %}
{% else %}
💳

No payments yet

Process your first payment above

{% endif %}

Quick Actions

👥 Manage Employees 📅 Manage Attendance 💰 Manage Expenses

Payment Management Tips

💰 Payment Types: Salary, Bonus, Advance, Expense Reimbursement

🏦 Account Selection: Choose the account to withdraw payment from

📊 Automatic Tracking: All payments are recorded in your account ledger

📈 Reporting: Track payment history for financial analysis

{% endblock %}