Fixed stock entry page consume amount handling (fixes #2397)

This commit is contained in:
Bernd Bestel
2024-02-09 16:29:19 +01:00
parent 9f94ba55a4
commit f2f9a16e59
3 changed files with 7 additions and 6 deletions

View File

@@ -188,7 +188,7 @@
data-stock-id="{{ $stockEntry->stock_id }}"
data-stockrow-id="{{ $stockEntry->id }}"
data-location-id="{{ $stockEntry->location_id }}"
data-consume-amount="1">
data-consume-amount="{{ $stockEntry->amount }}">
{{ $__t('Consume this stock entry as spoiled', '1 ' . FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->qu_id_stock)->name, FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->name) }}
</a>
@if(GROCY_FEATURE_FLAG_RECIPES)