Don't allow tare weight handling enabled products to be opened (closes #770)

This commit is contained in:
Bernd Bestel
2020-11-14 22:51:06 +01:00
parent 62c9c285ba
commit 28276191cc
3 changed files with 7 additions and 1 deletions

View File

@@ -372,7 +372,7 @@ Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
$('#display_amount').focus();
}
if (productDetails.stock_amount == productDetails.stock_amount_opened)
if (productDetails.stock_amount == productDetails.stock_amount_opened || productDetails.product.enable_tare_weight_handling == 1)
{
$("#save-mark-as-open-button").addClass("disabled");
}