{% extends "portal/_layout.html" %} {% block title %}{{ o.number }}{% endblock %} {% block content %} {{ t('Purchase Orders') }}

{{ o.number }}

{{ t('Date') }}
{{ o.date }}
{{ t('Expected delivery') }}
{{ o.expected_date or '—' }}
{{ t('Total') }}
{{ o.amount_total|money(cur) }} {{ cur }}
{{ t('Your response') }}
{{ {'accepted': t('Accepted'), 'rejected': t('Rejected')}.get(o.ack_state, t('To confirm')) }}{% if o.ack_ref %} · {{ o.ack_ref }}{% endif %}
{{ icon('file') }}PDF {% if o.state == 'confirmed' %}{{ icon('receipt') }}{{ t('Send invoice for this PO') }}{% endif %}
{% for ln in lines %}{% endfor %}
{{ t('Item') }}{{ t('Qty') }}{{ t('Received') }}{{ t('Unit Price') }}{{ t('Amount') }}
{{ ln.code or '' }} {{ ln.description or '' }}{{ '%g' % ln.quantity }} {{ ln.uom or '' }}{{ '%g' % prog[ln.id].done }} {{ ln.price_unit|money(cur) }}{{ ln.subtotal|money(cur) }}
{{ t('VAT') }}{{ o.amount_tax|money(cur) }}
{{ t('Total') }}{{ o.amount_total|money(cur) }}
{% if o.state == 'confirmed' and o.ack_state not in ('accepted',) %}

{{ t('Confirm this order') }}

{% endif %} {% if o.terms %}

{{ t('Terms & Conditions') }}

{{ o.terms }}
{% endif %} {% endblock %}