Squashed commit

Fixed recipe ingredient costs/calories calculation when having different QUs and when only_check_single_unit_in_stock is set (fixes #2529)
Added a new column "Product picture" on /products (closes #2640)
Fixed partly opening stock entries stock_id handling (fixes #2391)
This commit is contained in:
Bernd Bestel
2025-01-13 17:41:08 +01:00
parent e7cea3d949
commit f4d5f21832
13 changed files with 188 additions and 29 deletions

View File

@@ -1069,7 +1069,7 @@ class StockService extends BaseService
'purchased_date' => $stockEntry->purchased_date,
'location_id' => $stockEntry->location_id,
'shopping_location_id' => $stockEntry->shopping_location_id,
'stock_id' => $stockEntry->stock_id,
'stock_id' => uniqid(),
'price' => $stockEntry->price,
'note' => $stockEntry->note
]);