mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fixed stock entry label info handling when the corresponding feature flag is disabled
This commit is contained in:
parent
aec71bd408
commit
2633d3d1a5
@ -523,6 +523,8 @@ function UndoStockTransaction(transactionId)
|
|||||||
|
|
||||||
$("#display_amount").attr("min", "0");
|
$("#display_amount").attr("min", "0");
|
||||||
|
|
||||||
|
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_LABEL_PRINTER)
|
||||||
|
{
|
||||||
$("#stock_label_type, #amount").on("change", function(e)
|
$("#stock_label_type, #amount").on("change", function(e)
|
||||||
{
|
{
|
||||||
if ($("#stock_label_type").val() == 2)
|
if ($("#stock_label_type").val() == 2)
|
||||||
@ -542,3 +544,4 @@ $("#stock_label_type, #amount").on("change", function(e)
|
|||||||
$("#stock-entry-label-info").text("");
|
$("#stock-entry-label-info").text("");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
@ -721,6 +721,8 @@ function ScanModeSubmit(singleUnit = true)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_LABEL_PRINTER)
|
||||||
|
{
|
||||||
$("#stock_label_type, #amount").on("change", function(e)
|
$("#stock_label_type, #amount").on("change", function(e)
|
||||||
{
|
{
|
||||||
if ($("#stock_label_type").val() == 2)
|
if ($("#stock_label_type").val() == 2)
|
||||||
@ -732,3 +734,4 @@ $("#stock_label_type, #amount").on("change", function(e)
|
|||||||
$("#stock-entry-label-info").text("");
|
$("#stock-entry-label-info").text("");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user