{% extends "base.html" %} {% from "_macros.html" import terms_field, cost_centre_field, project_field with context %} {% block title %}{{ t(info.label) }}{% endblock %} {% block content %} {% set cur_branch = (o.branch_id if o else default_branch)|string %} {% set sale = kind == 'sale' %}
{{ t(info.title) }}

{{ (o.number if o and o.number else none) or t('New ' ~ info.draft) }}

{% if has('inventory') %}
{% endif %}
{{ project_field(projects, o.project_id if o else project_pre, t('The project’s cost centre is used and its budget is checked when the order is confirmed.') if not sale else None) }} {{ cost_centre_field(cost_centres, o.cost_centre_id if o else None, t('Given to the invoice lines and the cost of goods sold of this order.')) }}

{{ t('Lines') }}

{% macro line_row(ln, tpl=False) %} {% endmacro %} {{ line_row(none, True) }} {% for ln in lines %}{{ line_row(ln) }}{% endfor %}
{{ t('Product') }}{{ t('Description') }}{{ t('Qty') }} {{ t('Unit Price') }}{{ t('Tax') }}{{ t('Subtotal') }}
0.00
{{ t('Untaxed Amount') }}0.00
{{ t('VAT') }}0.00
{{ t('Total') }}0.00
{{ terms_field('po' if kind == 'purchase' else 'quotation', o.terms if o else '', not (o and o.id)) }}
{{ t('Cancel') }}
{% endblock %}