{% extends 'base.html' %} {% block title %}{{ claim.claim_reference_number }}{% endblock %} {% block content %}

{{ claim.applicant_name_english }} {% if claim.applicant_name_arabic %} {{ claim.applicant_name_arabic }} {% endif %}

Received {{ claim.date_received|date:'d M Y' }} Created by {% if claim.created_by %}{{ claim.created_by.get_full_name|default:claim.created_by.email }}{% else %}System{% endif %}
{% for invoice in claim.invoice_rows %} {% endfor %}
{{ invoice.goods_services }}
{{ invoice.transaction_type }} {{ invoice.transaction_number }} {{ invoice.transaction_date|date:'d M Y' }} {{ forloop.counter }} {{ invoice.supplier_trn }}
{{ invoice.supplier_name }}
{{ invoice.plot_number|default:'-' }} {{ invoice.get_tos_display|default:'-' }} {{ invoice.total_amount_paid|floatformat:2 }} {{ invoice.vat_amount|floatformat:2 }} {{ invoice.vat_approved|floatformat:2 }} {{ invoice.vat_paid|floatformat:2 }}
{{ invoice.description|default:'-' }}
Totals {{ totals.total_amount_paid|floatformat:2 }} {{ totals.total_vat_amount|floatformat:2 }} {{ totals.total_vat_approved|floatformat:2 }} {{ totals.total_vat_paid|floatformat:2 }}
{% for invoice in claim.invoice_rows %}

Invoice {{ forloop.counter }}

{{ invoice.transaction_number }}

{{ invoice.supplier_name }}

{{ invoice.transaction_type }}
Goods / Services {{ invoice.goods_services }}
Date {{ invoice.transaction_date|date:'d M Y' }}
Supplier TRN {{ invoice.supplier_trn }}
Line Item {{ forloop.counter }}
Plot No. {{ invoice.plot_number|default:'-' }}
TOS {{ invoice.get_tos_display|default:'-' }}
Total Paid {{ invoice.total_amount_paid|floatformat:2 }}
VAT Amount {{ invoice.vat_amount|floatformat:2 }}
VAT Approved {{ invoice.vat_approved|floatformat:2 }}
VAT Paid {{ invoice.vat_paid|floatformat:2 }}
{% if invoice.description %}
Description

{{ invoice.description }}

{% endif %}
{% endfor %}

Totals

Total Paid {{ totals.total_amount_paid|floatformat:2 }}
VAT Amount {{ totals.total_vat_amount|floatformat:2 }}
VAT Approved {{ totals.total_vat_approved|floatformat:2 }}
VAT Paid {{ totals.total_vat_paid|floatformat:2 }}
{% for label in description_option_labels %} {% endfor %}

No invoices match this filter

Switch back to All Invoices or review missing documents to continue uploading.

{% for invoice in claim.invoice_rows %} {% endfor %}
Check
{{ invoice.supplier_trn }}
{{ invoice.transaction_number }} {{ invoice.supplier_name }} {{ invoice.transaction_date|date:'d M Y' }}
{{ invoice.document_state_label }}
Invoice {{ invoice.review_summary.invoice_reason_label }}
Proof {{ invoice.review_summary.proof_reason_label }}
{% for invoice in claim.invoice_rows %}
{% endfor %}
{% for invoice in claim.invoice_rows %}

Invoice {{ forloop.counter }}

{{ invoice.transaction_number }}

{{ invoice.supplier_name }} · {{ invoice.transaction_date|date:'d M Y' }}

{{ invoice.document_state_label }}
{{ invoice.transaction_type }} TRN {{ invoice.supplier_trn }} {{ invoice.total_amount_paid|floatformat:2 }} AED
{{ invoice.invoice_document_count }} Invoice Files
{{ invoice.payment_proof_count }} Proofs
Invoice {{ invoice.review_summary.invoice_reason_label }}
Proof {{ invoice.review_summary.proof_reason_label }}
Invoice Files

PDF or image -> PDF

{{ invoice.invoice_document_count }}
{% csrf_token %}

Max 2 MB per file.

{% if invoice.invoice_documents %}
{% for document in invoice.invoice_documents %}
{{ document.file_badge }}

{{ document.original_name }}

{{ document.created_at|date:'d M Y H:i' }} · {% if document.uploaded_by %}{{ document.uploaded_by.get_full_name|default:document.uploaded_by.email }}{% else %}System{% endif %}

View
{% csrf_token %}
{% endfor %}
{% else %}

Invoice files missing

Upload the invoice PDF for this row.

{% endif %}
Payment Proofs

PDF <= 300 KB / page

{{ invoice.payment_proof_count }}
{% csrf_token %}

Max 2 MB per file.

{% if invoice.payment_proof_documents %}
{% for document in invoice.payment_proof_documents %}
{{ document.file_badge }}

{{ document.original_name }}

{{ document.created_at|date:'d M Y H:i' }} · {% if document.uploaded_by %}{{ document.uploaded_by.get_full_name|default:document.uploaded_by.email }}{% else %}System{% endif %}

View
{% csrf_token %}
{% endfor %}
{% else %}

Payment proof missing

Upload the proof PDF to complete this invoice.

{% endif %}
{% endfor %}

Activity

{{ claim.activity_logs.count }} event{{ claim.activity_logs.count|pluralize }}
{% if claim.activity_logs.all %}
{% for event in claim.activity_logs.all %}
{{ event.get_action_display }}

{{ event.message }}

{% if event.actor %}{{ event.actor.get_full_name|default:event.actor.email }}{% else %}System{% endif %} {% if event.invoice %} {{ event.invoice.transaction_number }} {% endif %} {{ event.created_at|date:'d M Y H:i' }}
{% endfor %}
{% else %}

No activity recorded yet

This report will start showing edits, uploads, and invoice updates here as soon as they happen.

{% endif %}
{% endblock %}