{% extends "generic/object.html" %} {% load render_table from django_tables2 %} {% load plugins %} {% block content %}
Contract
Name {{ object.name }}
Name Internal {{ object.name_internal }}
Type {{ object.get_type_display }}
Contract Type {{ object.contract_type }}
Contractor {{ object.contractor }}
Price {{ object.price|format_price_with_currency:object.currency }}
Signed {{ object.signed|date:"Y-m-d"|default_if_none:""|placeholder }}
Accepted {{ object.accepted|date:"Y-m-d"|default_if_none:""|placeholder }}
Invoicing Start {{ object.invoicing_start|date:"Y-m-d"|default_if_none:""|placeholder }}
Invoicing End {{ object.invoicing_end|date:"Y-m-d"|default_if_none:""|placeholder }}
Invoicing Status {% include 'inventory_monitor/inc/status_badge.html' with record=object status_type='invoicing' start_date=object.invoicing_start end_date=object.invoicing_end %}
Parent (Master contract) {% if object.parent %} {{ object.parent }} {% else %} {{ ''|placeholder }} {% endif %}
{% include "inc/panels/custom_fields.html" %} {% plugin_left_page object %}
{% include "inc/panels/tags.html" %} {% include "inc/panels/comments.html" %} {% plugin_right_page object %}
{% if object.contract_type == "contract" %}
Subcontracts
Subcontract List {% if perms.inventory_monitor.add_contract %} Add Subcontract {% endif %}
{% htmx_table 'plugins:inventory_monitor:contract_list' parent_id=object.pk %}
{% endif %}
Invoices
Invoices List {% if perms.inventory_monitor.add_invoice %} Add Invoices {% endif %}
{% htmx_table 'plugins:inventory_monitor:invoice_list' contract_id=object.pk %}
{% plugin_full_width_page object %}
{% endblock content %}