9355641c49
Previously print_settings.py controller decided which template to use. Now standard template decides what to print according to settings.
16 lines
629 B
HTML
16 lines
629 B
HTML
{% set qty_first=frappe.db.get_single_value("Print Settings", "print_uom_after_quantity") %}
|
|
{% if qty_first %}
|
|
{{ doc.get_formatted("qty", doc) }}
|
|
{% if (doc.uom and not doc.is_print_hide("uom")) %} {{ _(doc.uom) }}
|
|
{% elif (doc.stock_uom and not doc.is_print_hide("stock_uom")) %} {{ _(doc.stock_uom) }}
|
|
{%- endif %}
|
|
{% else %}
|
|
{% if (doc.uom and not doc.is_print_hide("uom")) %}
|
|
<small class="pull-left">{{ _(doc.uom) }}</small>
|
|
{% elif (doc.stock_uom and not doc.is_print_hide("stock_uom")) %}
|
|
<small class="pull-left">{{ _(doc.stock_uom) }}</small>
|
|
{%- endif %}
|
|
{{ doc.get_formatted("qty", doc) }}
|
|
{%- endif %}
|
|
|