diff --git a/InvenTree/templates/js/translated/pricing.js b/InvenTree/templates/js/translated/pricing.js index bef0093417..5ca389704a 100644 --- a/InvenTree/templates/js/translated/pricing.js +++ b/InvenTree/templates/js/translated/pricing.js @@ -76,7 +76,11 @@ function formatPriceRange(price_min, price_max, options={}) { var p_min = price_min || price_max; var p_max = price_max || price_min; - var quantity = options.quantity || 1; + var quantity = 1; + + if ('quantity' in options) { + quantity = options.quantity; + } if (p_min == null && p_max == null) { return null; diff --git a/InvenTree/templates/js/translated/stock.js b/InvenTree/templates/js/translated/stock.js index dcc8d88e59..f05fdd9cec 100644 --- a/InvenTree/templates/js/translated/stock.js +++ b/InvenTree/templates/js/translated/stock.js @@ -2063,6 +2063,10 @@ function loadStockTable(table, options) { currency = baseCurrency(); } + if (row.quantity <= 0) { + return '-'; + } + return formatPriceRange( min_price, max_price,