Simplified stock entry label printing options (on purchase) (references #1647)

This commit is contained in:
Bernd Bestel
2021-11-13 18:26:01 +01:00
parent 89b87156de
commit fc413a05d1
6 changed files with 183 additions and 87 deletions

View File

@@ -405,22 +405,6 @@ $('#qu_id_stock').change(function(e)
}
});
$('#allow_label_per_unit').on('change', function()
{
if (this.checked)
{
$('#label-option-per-unit').prop("disabled", false);
}
else
{
if ($('#default_print_stock_label').val() == "2")
{
$("#default_print_stock_label").val("0");
}
$('#label-option-per-unit').prop("disabled", true);
}
});
$(window).on("message", function(e)
{
var data = e.originalEvent.data;