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

Projects

Manage all engineering projects

Reports New Project
Total Projects

{{ projects|length }}

In Progress

{{ projects|selectattr('status', 'in', ['Design', 'Construction'])|list|length }}

Completed

{{ projects|selectattr('status', 'equalto', 'Completed')|list|length }}

Pipeline

{{ projects|selectattr('status', 'equalto', 'Pipeline')|list|length }}

Project List {{ projects|length }} Projects
{% for project in projects %} {% else %} {% endfor %}
Client LPO/JCARD NO Work Order Ref Date Received Job Description Quotation Enquiry Qty Ordered Assigned To Section Status Remarks
{{ project.customer.company_name }} {% if project.client_lpo_number %} {{ project.client_lpo_number }} {% else %} - {% endif %} {% if project.work_order_ref and project.work_order_ref != 'undefined' %} {{ project.work_order_ref }} {% else %} - {% endif %} {{ project.date_received.strftime('%d %b %Y') if project.date_received else project.created_at.strftime('%d %b %Y') }} {{ (project.job_description or project.description or project.project_name)|truncate(30) }} {% if project.boq_id %} {{ project.boq.quotation_number }} {% else %} - {% endif %} {% if project.enquiry_id %} {{ project.enquiry.enquiry_number }} {% else %} - {% endif %} {% if project.boq and project.boq.items %} {{ project.boq.items|sum(attribute='qty')|round(2) }} {% else %} 0 {% endif %} {% if project.assigned_to %} {{ project.assigned_to }} {% else %} Unassigned {% endif %} {% if project.assigned_to %} {% set user = users|selectattr('username', 'equalto', project.assigned_to)|first %} {% if user %} {{ user.department or user.role or "N/A" }} {% else %} - {% endif %} {% else %} - {% endif %} {{ project.status }} {% if project.remarks %} {{ project.remarks|truncate(15) }} {% else %} - {% endif %}
No projects found. Create your first project!
{% endblock %}