From d17e36b9f946c777898b33efbb45d4b821f15e8b Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 12 May 2019 13:24:58 +1000 Subject: [PATCH] Add BOM checksum info panels to the BOM view --- InvenTree/part/templates/part/bom.html | 15 +++++++++++++++ InvenTree/static/css/inventree.css | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/InvenTree/part/templates/part/bom.html b/InvenTree/part/templates/part/bom.html index c178ef455c..a94569d42c 100644 --- a/InvenTree/part/templates/part/bom.html +++ b/InvenTree/part/templates/part/bom.html @@ -11,6 +11,21 @@

Bill of Materials

+{% if part.bom_checked_date %} +{% if part.is_bom_valid %} +
+{% else %} +
+ The BOM for {{ part.full_name }} has changed, and must be validated.
+{% endif %} + The BOM for {{ part.full_name }} was last checked by {{ part.bom_checked_by }} on {{ part.bom_checked_date }} +
+{% else %} +
+ The BOM for {{ part.full_name }} has not been validated. +
+{% endif %} +
{% if editing_enabled %}
diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css index 49e2d636c7..7761addc55 100644 --- a/InvenTree/static/css/inventree.css +++ b/InvenTree/static/css/inventree.css @@ -224,6 +224,10 @@ pointer-events: all; } +.alert-block { + display: block; +} + .btn { margin-left: 2px; margin-right: 2px;