mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Don't allow tare weight handling enabled products to be opened (closes #770)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user