{% extends "base.html" %} {% from "_macros.html" import list_filters, branch_tag, state_badge with context %} {% block title %}{{ t('Landed Costs') }}{% endblock %} {% block content %} {% set cur = company.currency if company else '' %}

{{ t('Landed Costs') }}

{{ t('Add freight, customs, insurance and clearing charges to the cost of received goods.') }}
{% if can_write %}
+ {{ t('New Landed Cost') }}
{% endif %}
{% if clearing and waiting %}
{{ t('Waiting to be added to stock in') }} {{ clearing.code }} {{ nm(clearing) }}: {% for bid, bal in waiting.items() %}{{ branch_tag(branches, bid) }} {{ bal|money(branches[bid].currency if bid in branches else cur) }}{{ ' ยท ' if not loop.last }}{% endfor %}
{% endif %} {{ list_filters(f, ['draft', 'done']) }}
{% for r in rows %} {% else %}{% endfor %}
{{ t('Number') }}{{ t('Branch') }}{{ t('Date') }}{{ t('Receipts') }} {{ t('Split by') }}{{ t('Amount') }}{{ t('Status') }}
{{ r.number }}{{ branch_tag(branches, r.branch_id) }}{{ r.date }} {{ r.receipts or '' }}{{ t('Value') if r.method == 'value' else t('Quantity') }} {{ r.amount|money(branches[r.branch_id].currency if r.branch_id in branches else cur) }} {{ state_badge('posted' if r.state == 'done' else 'draft') }}
{{ t('Nothing yet.') }}
{% endblock %}