mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Merge pull request #2888 from SchrodingersGat/null-label-fix
Prevent "null" from being displayed as part units
This commit is contained in:
commit
52aaa78bfe
@ -500,6 +500,11 @@ function duplicateBom(part_id, options={}) {
|
|||||||
*/
|
*/
|
||||||
function partStockLabel(part, options={}) {
|
function partStockLabel(part, options={}) {
|
||||||
|
|
||||||
|
// Prevent literal string 'null' from being displayed
|
||||||
|
if (part.units == null) {
|
||||||
|
part.units = '';
|
||||||
|
}
|
||||||
|
|
||||||
if (part.in_stock) {
|
if (part.in_stock) {
|
||||||
// There IS stock available for this part
|
// There IS stock available for this part
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user