{% extends "base.html" %} {% load i18n %} {% load modeltags %} {% load arithmetictags %} {% load htmltags %} {% load filetags %} {% block title %}{% url project_detail proposal.project.id as project_url %}{% blocktrans with proposal.project as project and project_url as project_url %}Proposal for {{ project }}{% endblocktrans %}{% endblock %} {% block context_menu %}
{% trans "Edit" %}
{% trans "Delete" %}
{% endblock %} {% block content %}
{% with proposal as object %}{% with "reference" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %}
{{ proposal.get_state_display }} {% for next_state in next_states %}
{% csrf_token %}
{% endfor %}
{% with proposal as object %}{% with "amount" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %}
{{ proposal.get_remaining_to_invoice }}
{% with proposal as object %}{% with "begin_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with proposal as object %}{% with "end_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %} {% with proposal as object %}{% with "expiration_date" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %}
{{ proposal.get_payment_delay }}
{% with proposal as object %}{% with "footer_note" as name %} {% include "detail_field.html" %} {% endwith %}{% endwith %}
{% trans "download pdf file" %}

{% trans "Detail rows" %}

{% if proposal.proposal_rows.all %}
{% if user.get_profile.vat_number %} {% endif %} {% for proposalrow in proposal.proposal_rows.all %} {% if user.get_profile.vat_number %} {% endif %} {% endfor %}
{% trans "Label" %} {% trans "Category" %} {% trans "Quantity" %} {% trans "Unit price" %} {% trans "Total price" %}{% trans "VAT rate" %}{% trans "Detail" %}
{{ proposalrow.label }} {{ proposalrow.get_category_display }} {{ proposalrow.quantity|floatformat:"-2" }} {{ proposalrow.unit_price|floatformat:"-2" }} {{ proposalrow.unit_price|multiply:proposalrow.quantity|floatformat:"-2" }}{{ proposalrow.vat_rate|default:'' }}{{ proposalrow.detail|default:''|linebreaksbr }}
{% else %}
{% trans "No rows" %}
{% endif %} {% if proposal.can_be_converted_to_invoice %}
{% trans "Convert proposal to invoice" %}
{% endif %}

{% trans "Invoices" %}

{% if invoices %}
{% for invoice in invoices %} {% endfor %}
{% trans "Id" %} {% trans "State" %} {% trans "Amount" %}
{{ invoice.invoice_id }} {{ invoice.get_state_display }} {{ invoice.amount|default:""|floatformat }}
{% else %}
{% trans "No invoices" %}
{% endif %}
{% with proposal as object %}{% with "contract_file" as name %}
{% if object.contract_file %} {{ object.contract_file.name|basename|default:'' }}{% endif %}
{% endwith %}{% endwith %}
{% trans "download pdf file" %}
{% with proposal as object %}{% with "contract_content" as name %}
{{ object|value:name|to_html }}
{% endwith %}{% endwith %}
{% endblock %}