{% load i18n static admin_urls simpelcore_tags %} {% with object.product.specific as product %}
{{ product.inner_id }} {{ product.name|truncatechars:40 }}
{% firstof object.name product.name %}
{% if product.is_deliverable %}
{% trans "Deliverable Informations" %}
{% if object.deliverable_information %}
{{ object.deliverable_information.name|title }}{% if object.deliverable_information.phone %}, {{ object.billing_address.phone }}{% endif %}
{{ object.deliverable_information.text_line_1 }}
{{ object.deliverable_information.text_line_2 }}
{% else %}
{% trans "Deliverable information not set, using customer profile." %}
{% endif %}
{% endif %} {% if product.bundle_items.count or object.bundles.count %}
{% for bundle in product.bundle_items.all %} {% endfor %} {% for cartitem_bundle in object.bundles.all %} {% endfor %}
{% trans "#" %} {% trans "Item" %} {% trans "Price" %} {% trans "Quantity" %} {% trans "Total" %}
{{ bundle.product.inner_id }} {{ bundle.product.name }} {{ bundle.price|currency }} {{ bundle.quantity }} {{ bundle.product.unit }} {{ bundle.total|currency }} True
{{ cartitem_bundle.product.inner_id }} {{ cartitem_bundle.product.name }} {{ cartitem_bundle.product.total_price|currency }} {{ cartitem_bundle.quantity }} {{ cartitem_bundle.product.unit }} {{ cartitem_bundle.total|currency }} {% if not cartitem_bundle.required %}
{% else %}
True
{% endif %}
{% endif %}
{{ product.opts.verbose_name }}
{{ object.subtotal|currency }} x {{ object.quantity }}
{{ object.total|currency }}
{% comment %} {% endcomment %} {% url opts|admin_urlname:'change' object.pk|admin_urlquote as change_url %} {% trans "Update Item" %} {% url opts|admin_urlname:'delete' object.pk|admin_urlquote as delete_url %} {% trans "Remove Item" %}
{% endwith %}