From 2dd5a43444aae2b44339b85bb9ddcd8604f083d7 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 24 Aug 2022 14:16:02 +1000 Subject: [PATCH] Floating point formatting for BOM table (#3600) --- InvenTree/templates/js/translated/bom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/templates/js/translated/bom.js b/InvenTree/templates/js/translated/bom.js index ccee63e30f..3d03e20c94 100644 --- a/InvenTree/templates/js/translated/bom.js +++ b/InvenTree/templates/js/translated/bom.js @@ -1068,10 +1068,10 @@ function loadBomTable(table, options={}) { }); if (can_build == null) { - can_build = '-'; + return '-'; + } else { + return formatDecimal(can_build, 2); } - - return can_build; }, sorter: function(valA, valB, rowA, rowB) { // Function to sort the "can build" quantity