{% from "erpnext/templates/includes/macros.html" import product_image %} {% macro item_subtotal(item) %}
{{ item.get_formatted('amount') }}
{% if item.is_free_item %}
{{ _('FREE') }}
{% else %} {{ _('Rate:') }} {{ item.get_formatted('rate') }} {% endif %} {% endmacro %} {% for d in doc.items %}
{% if d.thumbnail %} {{ product_image(d.thumbnail, alt="d.web_item_name", no_border=True) }} {% else %}
{{ frappe.utils.get_abbr(d.web_item_name) or "NA" }}
{% endif %}
{{ d.get("web_item_name") or d.item_name }}
{{ d.item_code }}
{%- set variant_of = frappe.db.get_value('Item', d.item_code, 'variant_of') %} {% if variant_of %} {{ _('Variant of') }} {{ variant_of }} {% endif %}
{% set disabled = 'disabled' if d.is_free_item else '' %}
{% if not d.is_free_item %}
{% endif %}
{% if cart_settings.enable_checkout or cart_settings.show_price_in_quotation %}
{{ item_subtotal(d) }}
{% endif %} {% if cart_settings.enable_checkout or cart_settings.show_price_in_quotation %} {{ item_subtotal(d) }} {% endif %} {% endfor %}