{%- from "templates/print_formats/standard_macros.html" import add_header, render_field, print_value, fieldmeta, get_width, get_align_class with context -%} {%- macro render_currency(df, doc) -%}
{{ _("Sr") }} | {% for tdf in visible_columns %} {% if (data and not data[0].flags.compact_item_print) or tdf.fieldname in doc.get(df.fieldname)[0].flags.compact_item_fields %}{{ _(tdf.label) }} | {% endif %} {% endfor %}
---|---|
{{ d.idx }} | {% for tdf in visible_columns %} {% if not print_settings.compact_item_print or tdf.fieldname in doc.flags.compact_item_fields %}
{% if tdf.fieldname == 'qty' %}
{{ (d[tdf.fieldname])|abs }} |
{% elif tdf.fieldtype == 'Currency' %}