{% extends "base.html" %} {% from 'components/ui.html' import page_header %} {% block content %} {% set actions %} {{ _('Back') }} {% endset %} {{ page_header('fas fa-file-invoice', _('Edit Invoice') ~ ' ' ~ invoice.invoice_number, subtitle_text=_('Update invoice details, items, and terms'), actions_html=actions, breadcrumbs=[{'text': _('Invoices'), 'url': url_for('invoices.list_invoices')}, {'text': _('Edit Invoice')}]) }}

{{ _('Invoice Items') }} 0

{{ _('Time-based services and hourly work') }}

{% for item in invoice.items %}
{% if item.time_entry_ids %} {# Time-based item: show Project and Task #}
{{ invoice.project.name if invoice.project else '-' }}
{{ item.task_name_from_time_entries or _('Project hours') }}
{% else %} {# Stock/manual item: show Stock and Warehouse dropdowns #}
{% endif %}
{% if item.time_entry_ids %} {% else %} {% endif %}
{% endfor %}
{{ _('Items Subtotal') }}: {{ invoice.currency_code }} 0.00

{{ _('Expenses') }} 0

{{ _('Billable expenses such as travel, meals, and materials') }}

{% for expense in invoice.expenses %}
{% endfor %}
{{ _('Expenses Subtotal') }}: {{ invoice.currency_code }} 0.00

{{ _('Extra Goods') }} 0

{{ _('Products, materials, licenses, and other goods') }}

{% for good in invoice.extra_goods %}
{% endfor %}
{{ _('Goods Subtotal') }}: {{ invoice.currency_code }} 0.00
{{ _('Cancel') }}

{{ _('Live Preview') }}

{{ _('Issue Date') }}
{{ invoice.issue_date|format_date if invoice.issue_date else '-' }}
{{ _('Status') }}
{{ invoice.status|capitalize }}
{{ _('Payment') }}
{{ invoice.payment_status.replace('_',' ')|capitalize }}
{{ _('Currency') }}
{{ invoice.currency_code }}
{{ _('Items') }} (0) 0.00
{{ _('Expenses') }} (0) 0.00
{{ _('Goods') }} (0) 0.00
{{ _('Subtotal') }} 0.00
{{ _('Tax') }} ({{ '%.2f'|format(invoice.tax_rate) }}%) 0.00
{{ _('Total') }} 0.00
{{ _('Amount Paid') }} {{ '%.2f'|format(invoice.amount_paid or 0) }}
{{ _('Outstanding') }} {{ '%.2f'|format(invoice.outstanding_amount) }}
{% endblock %} {% block scripts_extra %} {% endblock %}