{% extends "construction/base.html" %} {% load static i18n humanize base_tag construction_tag mathfilters %} {% block topbar %} {% include 'construction/partials/topbar_only_title.html' %} {% endblock topbar %} {% block page_title %}

DAILY REPORT

{{report_date}}

{% endblock %} {% block content %}

Summary

{% if works %} {{works|length}} {% if works|length == 1 %}work{% else %}works{% endif %} {% else %} - {% endif %}

{% if personnel_expenses %} {{personnel_expenses|length}} {% if personnel_expenses|length == 1 %}worker{% else %}workers{% endif %} {% else %} - {% endif %}

{% if personnel_expense_sum|add:expense_sum != 0 %}

{{personnel_expense_sum|add:expense_sum|filter_safe_money_read_from_db|intcomma}}

{% else %}

-

{% endif %}

Works

{% if is_editor %}

+ Add today's works

{% endif %} {% for work in works %}

{{work.work_date_index}}일차 {{work.title}}

{{work.type.title}} / {% for zone in work.zone_list %} {{zone.name}}{% if not forloop.last %}, {% endif %} {% endfor %}
{% if is_editor %}
{% csrf_token %}
{% endif %}
{% endfor %}

Workers

{% if is_editor %} {% endif %} {% for personnel_expense in personnel_expenses reversed %} {% if is_editor %} {% endif %} {% endfor %}
# Name Work Hours Payment
{{forloop.counter}} {% if personnel_expense.attachment %} {% endif %} {{personnel_expense.worker.name}} {% for speciality in personnel_expense.worker.speciality %} {% get_worker_speciality_shorttitle speciality=speciality %} {% endfor %} {% if personnel_expense.description %} {% endif %} {{personnel_expense.work_hours}} {{personnel_expense.amount|filter_safe_money_read_from_db|intcomma}} {% if personnel_expense.payment_date %} {% endif %}
{% if is_editor %} {% endif %}
+ New line
Total {{personnel_expenses|length}} {% if personnel_expenses|length == 1 %}worker{% else %}workers{% endif %} {{personnel_expense_sum|filter_safe_money_read_from_db|intcomma}}

Expense

{% if is_editor %} {% endif %} {% for expense in expenses %} {% if is_editor %} {% endif %} {% endfor %}
# Item Category Quantity Unit Price Amount
{{forloop.counter}} {% if expense.attachment %} {% endif %} {{expense.item}} {% if expense.description %} {% endif %} {{expense.category}} {{expense.quantity}} {{expense.amount|intdiv:expense.quantity|filter_safe_money_read_from_db|intcomma}} {{expense.amount|filter_safe_money_read_from_db|intcomma}}
{% if is_editor %} {% endif %}
+ New line
Total {{expense_sum|filter_safe_money_read_from_db|intcomma}}

Description

{% if is_editor %}
{% csrf_token %}
{{form.content}}
{% else %}
{{report.content|safe}}
{% endif %}
{% endblock %} {% block modal %} {% if is_editor %} {% include 'construction/partials/work_create_modal.html' %} {% include 'construction/partials/expense_create_modal.html' %} {% include 'construction/partials/expense_update_modal.html' %} {% endif %} {% endblock modal %}