{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% from "components/client_select.html" import client_select %} {% block content %} {{ page_header( icon_class='fas fa-receipt', title_text=('Edit Expense' if expense else 'Create Expense'), subtitle_text=('Update expense details' if expense else 'Create a new expense record'), breadcrumbs=[ {'text': 'Expenses', 'url': url_for('expenses.list_expenses')}, {'text': 'Edit Expense' if expense else 'Create Expense'} ] ) }}

{{ _('Basic Information') }}

{{ _('Amount Details') }}

Total Amount: {{ (expense.amount + (expense.tax_amount or 0)) if expense else '0.00' }} {{ expense.currency_code if expense else 'EUR' }}

{{ _('Association') }}

Selecting a project will auto-fill the client

{{ client_select('client_id', clients, selected_id=expense.client_id if expense else none, required=False, only_one_client=only_one_client|default(false), single_client=single_client) }}

{{ _('Payment Details') }}

{{ _('Receipt & Additional Information') }}

Allowed: PNG, JPG, GIF, PDF (Max 10MB)

{% if expense and expense.receipt_path %}

Receipt uploaded

{% endif %}

{{ _('Options') }}

Cancel
{% endblock %}