Make it possible to disable open per product (closes #1911)

This commit is contained in:
Bernd Bestel
2025-01-19 14:57:19 +01:00
parent 72e1a9aee7
commit bc78359dba
10 changed files with 139 additions and 11 deletions

View File

@@ -121,7 +121,7 @@
<i class="fa-solid fa-utensils"></i>
</a>
@if(GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING)
<a class="btn btn-success btn-sm product-open-button @if($stockEntry->open == 1 || FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->enable_tare_weight_handling == 1) disabled @endif"
<a class="btn btn-success btn-sm product-open-button @if($stockEntry->open == 1 || FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->enable_tare_weight_handling == 1 || FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->disable_open == 1) disabled @endif"
href="#"
data-toggle="tooltip"
data-placement="left"