2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Make this setting a per-user setting

This commit is contained in:
Oliver
2021-10-06 22:22:20 +11:00
parent 166af3592d
commit d9fddf64f1
7 changed files with 40 additions and 11 deletions

View File

@ -162,7 +162,7 @@ function renderPart(name, data, parameters, options) {
var stock = '';
// Display available part quantity
if (global_settings.PART_SHOW_QUANTITY_IN_FORMS) {
if (user_settings.PART_SHOW_QUANTITY_IN_FORMS) {
if (data.in_stock == 0) {
stock = `<span class='label-form label-red'>{% trans "No Stock" %}</span>`;
} else {