item table print template

This commit is contained in:
Nabin Hait 2015-06-01 17:12:43 +05:30
parent ca23b5ecfd
commit e481a211b1

View File

@ -13,8 +13,13 @@
<div class="primary">{{ doc.get_formatted("item_name") }}</div>
{%- endif %}
{% if (doc.in_format_data("description") and doc.description and
((not doc.in_format_data("item_code") and not doc.in_format_data("item_name"))
or not (doc.item_code == doc.item_name == doc.description))) -%}
(
(
(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)
))
-%}
<p>{{ doc.get_formatted("description") }}</p>
{%- endif %}
</div>