From b02ce1f01e005c996beac1b7bfc4363694844008 Mon Sep 17 00:00:00 2001 From: simonkuehling Date: Thu, 16 Feb 2023 21:25:09 +0100 Subject: [PATCH] show units in [Add Stock] modal (fixes #4351) (#4352) --- InvenTree/templates/js/translated/stock.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/templates/js/translated/stock.js b/InvenTree/templates/js/translated/stock.js index 867c71bd0c..c5565c4131 100644 --- a/InvenTree/templates/js/translated/stock.js +++ b/InvenTree/templates/js/translated/stock.js @@ -1046,6 +1046,10 @@ function adjustStock(action, items, options={}) { var quantity = item.quantity; + if (item.part_detail.units != null) { + quantity += ` ${item.part_detail.units}`; + } + var location = locationDetail(item, false); if (item.location_detail) {