{%- set compact = doc.flags.compact_item_print -%} {%- set compact_fields = doc.flags.compact_item_fields -%} {% if doc.in_format_data("image") and doc.get("image") and not doc.is_print_hide("image")-%}
{%- endif %}
{% if doc.in_format_data("item_code") and not doc.is_print_hide("item_code") -%}
{% if compact %}{% endif %} {{ _(doc.item_code) }} {% if compact %}{% endif %}
{%- endif %} {% if (doc.in_format_data("item_name") and not doc.is_print_hide("item_name") and (not doc.in_format_data("item_code") or doc.is_print_hide("item_code") or doc.item_code != doc.item_name)) -%}
{{ doc.get_formatted("item_name", translated=True) }}
{%- endif %} {% if (doc.in_format_data("description") and doc.description and ( ( (not doc.in_format_data("item_code") or doc.is_print_hide("item_code")) and (not doc.in_format_data("item_name") or doc.is_print_hide("item_name")) ) or not (doc.item_code == doc.item_name == doc.description) )) -%}

{{ doc.get_formatted("description", translated=True) }}

{%- endif %} {% if compact -%} {%- for fieldname in doc.flags.show_in_description -%} {% if doc.get(fieldname) and doc.in_format_data(fieldname) -%}

{{ _(doc.meta.get_label(fieldname)) }}: {{ doc.get_formatted(fieldname, translated=True) }}

{% endif %} {%- endfor -%} {%- endif %}