summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse/templates')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_container.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html
index 6c0edc3dc..4cea9b732 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_container.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_container.html
@@ -133,13 +133,16 @@
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> &nbsp;
{% trans "Calculated weight and measured weight are too different (over 10%)." %}
</div>
- {% field_flex weight_kg_trans item.weight_kg %}
- {% field_flex calculated_weight_kg_trans item.calculated_weight_kg %}
+ {% if item.weight %}
+ {% field_flex weight_kg_trans item.weight_kg|floatformat:"-3" %}
+ {% endif %}{% if item.calculated_weight %}
+ {% field_flex calculated_weight_kg_trans item.calculated_weight_kg|floatformat:"-3" %}
+ {% endif %}
{% else %}
{% if item.weight %}
- {% field_flex weight_kg_trans item.weight_kg %}
+ {% field_flex weight_kg_trans item.weight_kg|floatformat:"-3" %}
{% elif item.calculated_weight %}
- {% field_flex calculated_weight_kg_trans item.calculated_weight_kg %}
+ {% field_flex calculated_weight_kg_trans item.calculated_weight_kg|floatformat:"-3" %}
{% endif %}
{% endif %}{% endwith %}
{% include "ishtar/blocks/sheet_creation_section.html" %}