{% extends "base.html" %} {% block content %}

{{ _('Extra Goods') }} ยท {{ project.name }}

{{ _('Manage products and services for this project') }}

{{ _('Back to Project') }} {{ _('Add Good') }}

{{ _('Total Goods') }}

{{ goods|length }}

{{ _('Total Amount') }}

{{ '%.2f'|format(total_amount) }}

{{ _('Billable Amount') }}

{{ '%.2f'|format(billable_amount) }}

{{ _('Categories') }}

{{ category_breakdown|length }}

{% if goods %}
{% for good in goods %} {% endfor %}
{{ _('Name') }} {{ _('Category') }} {{ _('Quantity') }} {{ _('Unit Price') }} {{ _('Total') }} {{ _('Status') }} {{ _('Actions') }}
{{ good.name }}
{% if good.description %}
{{ good.description[:80] }}{% if good.description|length > 80 %}...{% endif %}
{% endif %} {% if good.sku %}
SKU: {{ good.sku }}
{% endif %}
{{ good.category|capitalize }} {{ '%.2f'|format(good.quantity) }} {{ '%.2f'|format(good.unit_price) }} {{ good.currency_code }} {{ '%.2f'|format(good.total_amount) }} {{ good.currency_code }} {% if good.invoice_id %} {{ _('Invoiced') }} {% elif good.billable %} {{ _('Billable') }} {% else %} {{ _('Non-billable') }} {% endif %}
{% if not good.invoice_id %}
{% endif %}
{% else %}

{{ _('No extra goods found for this project') }}

{{ _('Add Your First Good') }}
{% endif %} {% if category_breakdown %}

{{ _('Breakdown by Category') }}

{% for item in category_breakdown %}
{{ item.category|capitalize }}
{{ '%.2f'|format(item.total_amount) }}
{{ item.count }} {{ _('item(s)') }}
{% endfor %}
{% endif %} {% endblock %}