From 0d931e1d7d2a60b0aa46d51a15f57bd3b22cccd6 Mon Sep 17 00:00:00 2001 From: Zarrar Date: Thu, 6 Sep 2018 13:08:58 +0530 Subject: [PATCH] fix uom & stock_uom print hide logic (#15327) --- .../templates/print_formats/includes/item_table_qty.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/templates/print_formats/includes/item_table_qty.html b/erpnext/templates/print_formats/includes/item_table_qty.html index 0c80069885..239859eea1 100644 --- a/erpnext/templates/print_formats/includes/item_table_qty.html +++ b/erpnext/templates/print_formats/includes/item_table_qty.html @@ -1,4 +1,6 @@ -{% if (doc.stock_uom and not doc.is_print_hide("stock_uom")) or (doc.uom and not doc.is_print_hide("uom")) -%} -{{ _(doc.uom or doc.stock_uom) }} +{% 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 %} {{ doc.get_formatted("qty", doc) }}