From 624fc174db1faad88397b29fa482af2b13276a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Dvo=C5=99=C3=A1k?= Date: Wed, 15 Nov 2023 10:50:23 +0100 Subject: [PATCH] Update production.bom_table.hbs --- src/OpenIntranet/templates/production.bom_table.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenIntranet/templates/production.bom_table.hbs b/src/OpenIntranet/templates/production.bom_table.hbs index 2c4672f..7f9519e 100644 --- a/src/OpenIntranet/templates/production.bom_table.hbs +++ b/src/OpenIntranet/templates/production.bom_table.hbs @@ -1,11 +1,11 @@ {%for i, row in enumerate(data) %} {% set valid = bson.objectid.ObjectId.is_valid(row['cUST_ID']) %} -{% set exclude_row = row.get('_id', {}).get('exclude_from_bom', False) %} +{% set exclude_row = row.get('exclude_from_bom', False) %} {% if not exclude_row %} -
#{{i+1}}
+
#{{i+1}}
{{len(row['Ref'])}} ×