<%inherit file="../base/base.html" /> <%namespace file="../base/base.html" import="header, setup_margin_labels" /> <%block name="title_head"> <%block name="extra_meta"> ${ setup_margin_labels(title) }
${ header(complete_header, title, subtitle, notes) }

${_("Invoice number")}: | ${ order.invoice.invoice_number if order.invoice.invoice_number else _("N/A") } | ${_("Status")}: | ${ order.status_str}
${_("Open date")}: | ${ order.open_date.strftime('%x')} % if is_cancelled: | ${ _("Cancel date") }: | ${ order.cancel_date.strftime('%x') } % else: | ${ _("Receival") }: | ${ order.receival_date.strftime('%x') if order.receival_date else _("Not received yet") } % endif
${ _("Source") }: | ${ order.source_branch.get_description() } | ${ _("Destination") }: | ${ order.destination_branch.get_description() }
${ _("Responsible") }: | ${ order.source_responsible.person.name } | ${ _("Responsible") }: % if is_cancelled: | ${ order.cancel_responsible.person.name } % else: | ${ order.destination_responsible.person.name if order.destination_responsible else _("N/A") } % endif

# | ${ _("Description") } | ${ _("Quantity") }
% for item in order.get_items():
${ item.sellable.code } | ${ item.sellable.get_description() } | ${ item.quantity }
% endfor
Total: ${ total }

% if order.comments:

${ _("Comments") }:

${ order.comments }
% endif

${ order.source_responsible.person.name } % if order.destination_responsible: ${ order.destination_responsible.person.name } % endif