mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 11:05:41 +00:00
Fix selecting the default stock item template (#5318)
This commit is contained in:
@ -94,8 +94,8 @@ function selectLabel(labels, items, options={}) {
|
||||
return item.pk == user_settings.DEFAULT_PART_LABEL_TEMPLATE;
|
||||
else if (options.key == 'location')
|
||||
return item.pk == user_settings.DEFAULT_LOCATION_LABEL_TEMPLATE;
|
||||
else if (options.key == 'stock')
|
||||
return item.pk == user_settings.DEFAULT_STOCK_LABEL_TEMPLATE;
|
||||
else if (options.key == 'item')
|
||||
return item.pk == user_settings.DEFAULT_ITEM_LABEL_TEMPLATE;
|
||||
return '';
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user