From c287a0a0b9e2321c325464ebd5b10424b21b6c06 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 12 Feb 2020 08:22:55 +1100 Subject: [PATCH] More rounding improvements --- InvenTree/part/templates/part/allocation.html | 3 +++ InvenTree/part/templates/part/used_in.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/InvenTree/part/templates/part/allocation.html b/InvenTree/part/templates/part/allocation.html index c87d71814b..913469997f 100644 --- a/InvenTree/part/templates/part/allocation.html +++ b/InvenTree/part/templates/part/allocation.html @@ -39,6 +39,9 @@ { title: 'Allocated', sortable: false, + formatter: function(value, row, index, field) { + return parseFloat(value); + }, }, { title: 'Status', diff --git a/InvenTree/part/templates/part/used_in.html b/InvenTree/part/templates/part/used_in.html index 872288723e..bad93b17ec 100644 --- a/InvenTree/part/templates/part/used_in.html +++ b/InvenTree/part/templates/part/used_in.html @@ -53,6 +53,9 @@ sortable: true, field: 'quantity', title: 'Uses', + formatter: function(value, row, index, field) { + return parseFloat(value); + }, } ],