{%- from "templates/print_formats/standard_macros.html" import print_value -%} {%- set std_fields = ("item_code", "item_name", "description", "qty", "rate", "amount", "stock_uom", "uom") -%} {%- set visible_columns = get_visible_columns(doc.get(df.fieldname), table_meta) -%}
Sr | Item Name | Description | Qty | Rate | Amount |
---|---|---|---|---|---|
{{ row.idx }} |
{{ row.item_name }}
{% if row.item_code != row.item_name -%}
Item Code: {{ row.item_code}} {%- endif %} |
{{ row.description }}
{%- for field in visible_columns -%}
{%- if (field.fieldname not in std_fields) and
(row[field.fieldname] not in (None, "")) -%}
{{ field.label }}: {{ frappe.format_value(row[field.fieldname], field, doc) }} {%- endif -%} {%- endfor -%} {{ row.qty }} {{ row.uom or row.stock_uom }} |
{{
frappe.format_value(row.rate,
table_meta.get_field("rate"), doc) }} |
{{
frappe.format_value(row.amount,
table_meta.get_field("amount"), doc) }} |
|