2015-05-14 06:56:27 +00:00
|
|
|
{% if doc.in_format_data("image") and doc.get("image") and not doc.is_print_hide("image")-%}
|
2015-05-29 07:13:39 +00:00
|
|
|
<div class="pull-left" style="max-width: 38.2%; margin-right: 10px;">
|
2015-07-15 07:07:45 +00:00
|
|
|
<img src="{{ doc.image }}" class="img-responsive">
|
2015-02-04 11:32:24 +00:00
|
|
|
</div>
|
|
|
|
{%- endif %}
|
|
|
|
<div>
|
2015-05-26 11:02:30 +00:00
|
|
|
{% if doc.in_format_data("item_code") and not doc.is_print_hide("item_code") -%}
|
2015-02-04 11:32:24 +00:00
|
|
|
<div class="primary">{{ doc.item_code }}</div>
|
|
|
|
{%- endif %}
|
2015-05-29 10:56:07 +00:00
|
|
|
{% if (doc.in_format_data("item_name") and not doc.is_print_hide("item_name") and
|
2015-07-03 05:13:35 +00:00
|
|
|
(not doc.in_format_data("item_code") or doc.is_print_hide("item_code")
|
2015-05-26 11:02:30 +00:00
|
|
|
or doc.item_code != doc.item_name)) -%}
|
2015-02-04 11:32:24 +00:00
|
|
|
<div class="primary">{{ doc.get_formatted("item_name") }}</div>
|
|
|
|
{%- endif %}
|
|
|
|
{% if (doc.in_format_data("description") and doc.description and
|
2015-06-01 11:42:43 +00:00
|
|
|
(
|
|
|
|
(
|
2015-07-03 05:13:35 +00:00
|
|
|
(not doc.in_format_data("item_code") or doc.is_print_hide("item_code")) and
|
2015-06-01 11:42:43 +00:00
|
|
|
(not doc.in_format_data("item_name") or doc.is_print_hide("item_name"))
|
|
|
|
) or not (doc.item_code == doc.item_name == doc.description)
|
|
|
|
))
|
|
|
|
-%}
|
2015-02-04 11:32:24 +00:00
|
|
|
<p>{{ doc.get_formatted("description") }}</p>
|
|
|
|
{%- endif %}
|
|
|
|
</div>
|